rollup-plugin-monaco-editor icon indicating copy to clipboard operation
rollup-plugin-monaco-editor copied to clipboard

Firefox support

Open nathancahill opened this issue 3 years ago • 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: https://github.com/chengcyber/rollup-plugin-monaco-editor/blob/a79288e0d9a688d43c55fb8953413a6e42ee5875/src/index.ts#L354

nathancahill avatar Mar 01 '22 00:03 nathancahill

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.

chengcyber avatar Mar 03 '22 06:03 chengcyber