This commit is contained in:
8
frontend/app/utils/lean/monaco-worker.ts
Normal file
8
frontend/app/utils/lean/monaco-worker.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* 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 }
|
||||
Reference in New Issue
Block a user