9 lines
454 B
TypeScript
9 lines
454 B
TypeScript
/* Monaco's editor worker, wrapped so the `?worker` import stays static
|
|
* (what this toolchain resolves) while the component still pulls it in
|
|
* lazily, only in the browser. Monaco 0.57's exports map makes paths like
|
|
* `monaco-editor/esm/vs/...` invalid — the package-root form below is the
|
|
* real specifier (`./editor/*` → `./esm/vs/editor/*`). */
|
|
import EditorWorker from 'monaco-editor/editor/editor.worker.js?worker'
|
|
|
|
export { EditorWorker }
|