emscripten-core / emscripten-core/emscripten
MODULARIZE does not work with Firefox and pthreads
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
We recently turned on MODULARIZE=1 -s EXPORT_ES6=1 -s USE_ES6_IMPORT_META=1 for psweb.
But we ran into an issue with Firefox: Error: Dynamic module import is disabled or not supported in this context
This is while loading the wasm web worker js file.
This might be relevant: https://bugzilla.mozilla.org/show_bug.cgi?id=1247687
It seems that dynamic import in Web Workers is not supported in Firefox.
Contributor guide
Assessment
This issue has not been assessed yet.