emscripten-core / emscripten-core/emscripten

MODULARIZE does not work with Firefox and pthreads

Open
#18,550 4 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.