Skip to content

Commit 6a6be7e

Browse files
author
robert masen
committed
update comment to be more descriptive
1 parent 79a49b2 commit 6a6be7e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/hello_world/chrome/build_fetch.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
set -ex
44

5-
# This is the same as the directory above this.
5+
# This is the same build.sh, later we are going to use the
6+
# fetch flag to avoid including the wasm module as a string
7+
# of base64, instead using the js `fetch` function
8+
#to request the module from the server.
69
cargo +nightly build --target wasm32-unknown-unknown
710
cargo +nightly run -p wasm-bindgen-cli --bin wasm-bindgen -- \
811
../../../target/wasm32-unknown-unknown/debug/hello_world.wasm --out-dir .
@@ -12,7 +15,7 @@ cargo +nightly run -p wasm-bindgen-cli --bin wasm-bindgen -- \
1215
cargo +nightly run -p wasm-bindgen-cli --bin wasm2es6js -- \
1316
--fetch ./hello_world_bg.wasm -o hello_world_bg.js hello_world_bg.wasm
1417

15-
# And like the directory above this, from here it's the same.
18+
# Install the npm items as usual.
1619
npm install
1720

1821
# since we kept the same name for the .js module, we need

0 commit comments

Comments
 (0)