Skip to content

Generated code tweaks to satisfy next-js bundler

Bartek Wrona requested to merge import_module_error_reproduce into develop

Eliminated parts of emscripten generated code which lead next bundler to fail while processing (runtime dead) dynamic imports specific to nodejs environment.

Related to https://github.com/emscripten-core/emscripten/issues/19886

Probably best solution would be to change emscripten code generator to skip file processing when SINGLE_FILE is enabled (and wasm code inlined as string variable) like also replace require with await import(...)

Merge request reports

Loading