File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
examples/without-a-bundler Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
4
5
- # Note that typically we'd use `wasm-pack` to build the crate, but the
6
- # `--web` flag is very new to `wasm-bindgen` and as such doesn't have
7
- # support in `wasm-pack` yet. Support will be added soon though!
8
-
9
- cargo build --target wasm32-unknown-unknown --release
10
- cargo run --manifest-path ../../crates/cli/Cargo.toml \
11
- --bin wasm-bindgen -- \
12
- ../../target/wasm32-unknown-unknown/release/without_a_bundler.wasm --out-dir pkg \
13
- --web
14
-
5
+ wasm-pack build --target web
15
6
python3 -m http.server
Original file line number Diff line number Diff line change @@ -9,9 +9,6 @@ browser directly. For this deployment strategy bundlers like Webpack are not
9
9
required. For more information on deployment see the [ dedicated
10
10
documentation] [ deployment ] .
11
11
12
- > ** Note** : the ` --web ` flag is quite new to ` wasm-bindgen ` , and does not
13
- > currently have support in ` wasm-pack ` yet. Support will be added soon though!
14
-
15
12
First let's take a look at the code and see how when we're using ` --web `
16
13
we're not actually losing any functionality!
17
14
You can’t perform that action at this time.
0 commit comments