Skip to content

Commit 2313de1

Browse files
authored
Stop deleting build results during rebuilds (#175)
This solves a problem with the webpack-dev-server, which would see the half-built javascript output and explode with a big error about `Can't resolve './pkg/matrix_sdk_crypto_wasm_bg.js'`
1 parent db1af39 commit 2313de1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
- The published package is now a proper dual CommonJS/ESM package.
55
- The WebAssembly module is now loaded using `fetch` on Web platforms, reducing
66
the bundle size significantly, as well as the time it takes to compile it.
7-
([#167](https://github.com/matrix-org/matrix-rust-sdk-crypto-wasm/pull/167))
7+
([#167](https://github.com/matrix-org/matrix-rust-sdk-crypto-wasm/pull/167)),
8+
([#175](https://github.com/matrix-org/matrix-rust-sdk-crypto-wasm/pull/175))
89

910
**BREAKING CHANGES**
1011

scripts/build.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ cd "$(dirname "$0")"/..
99

1010
WASM_PACK_ARGS="${WASM_PACK_ARGS:-}"
1111

12-
rm -rf pkg
13-
1412
# Generate the JavaScript bindings
1513
# --no-pack disables generation of a `package.json` file, as we're managing it ourselves.
1614
wasm-pack build --no-pack --target bundler --scope matrix-org --out-dir pkg --weak-refs "${WASM_PACK_ARGS}"

0 commit comments

Comments
 (0)