Skip to content

Commit ee98e26

Browse files
committed
js: set emcc options when generating for the npm package
1 parent cde542f commit ee98e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/wasm_package/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -xeo pipefail
33

44
# Build WASM (Note Elements is always enabled)
5-
(cd ../.. && ./tools/build_wasm.sh)
5+
(cd ../.. && EMCC_OPTIONS="-s EXPORT_ES6=1 -s MODULARIZE=1" ./tools/build_wasm.sh)
66
mkdir -p libwally_wasm && cp ../../dist/wallycore.{js,wasm} libwally_wasm/
77
touch libwally_wasm/index # necessary for webpack to work (fixes "Can't resolve './' in 'wasm_package/libwally_wasm'")
88

0 commit comments

Comments
 (0)