emscripten-core/emscripten
Auf GitHub ansehenfile-packager js output not working with closure and --pre-js
Open
#12.701 geöffnet am 4. Nov. 2020
good first bughelp wanted
Repository-Metriken
- Stars
- (27.361 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 19T 10h) (147 gemergte PRs in 30 T)
Beschreibung
I'm getting the following closure error when adding the output of file-packager using --pre-js:
ERROR - [JSC_VAR_MULTIPLY_DECLARED_ERROR] Variable Module declared more than once.
Using --preload-file instead works fine which leads me to believe this is a bug.
Commands for completeness:
file_packager.py testapp.resources.data --preload testapp/resources@resources --js-output=testapp.resources.js --use-preload-cache
em++ -s WASM=1 -DNDEBUG -O3 -s ENVIRONMENT=web -s MODULARIZE -s EXPORT_NAME=createModule -flto --closure 1 -s FORCE_FILESYSTEM --pre-js testapp.resources.js [...]