chengcyber/rollup-plugin-monaco-editor

Firefox support

nathancahill opened this issue · 1 comments

Firefox does not support module service workers yet. Can we add a flag to change the output from esm for workers only? I think this is the relevant path:

if (containsMonacoEntryModule && !isWorkerChunk) {

Hi @nathancahill , Does this option https://github.com/chengcyber/rollup-plugin-monaco-editor#esm work for you? You can set esm: false explicitly to output commonjs spec service worker code.