Files
mathew/frontend/app/utils/lean/monaco-worker.ts
Aran Roig 6df7950161
Some checks failed
Build and Deploy Nuxt / build (push) Failing after 41s
Ai slop
2026-10-03 14:13:08 +02:00

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 }