Open hanabi1224 opened 2 years ago
emcc support hope also. build by follow command
emcc -O3 -s WASM=1 \
-s ASSERTIONS=1 \
-s MODULARIZE=1 \
-s ALLOW_MEMORY_GROWTH=1 \
-s NODEJS_CATCH_EXIT=0 \
-s NODEJS_CATCH_REJECTION=0 \
-s EXPORT_NAME='XXXSDK' \
-s EXPORTED_RUNTIME_METHODS='["cwrap"]' \
-s LLD_REPORT_UNDEFINED \
./build/lib_xxx.a \
main.cpp \
--post-js glue.js \
-o ./dist/xxxx.js
It looks like the plugin cannot properly bundle inlinejs, is there plan to support that?
Add below code to example/my-crate/src/lib.rs, then the build will fail