Skip to content

Commit

Permalink
Fix tree shaking being too aggressive (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz authored Jul 29, 2024
1 parent 262c307 commit 50223ff
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### Unreleased

### Modified

- Package tree shaking has been disabled to avoid a crash on certain build configuration (#289).

### 0.14.0 (20 July 2024)

#### Modified
Expand Down
5 changes: 5 additions & 0 deletions rapier2d/build_rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
npx wasm-pack build
sed -i.bak 's#dimforge_rapier#@dimforge/rapier#g' pkg/package.json
sed -i.bak 's/"rapier_wasm2d_bg.wasm"/"*"/g' pkg/package.json
(
cd pkg
npm pkg delete sideEffects
npm pkg set 'sideEffects[0]'="./*.js"
)
rm pkg/*.bak
rm pkg/.gitignore
5 changes: 5 additions & 0 deletions rapier3d/build_rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
npx wasm-pack build
sed -i.bak 's#dimforge_rapier#@dimforge/rapier#g' pkg/package.json
sed -i.bak 's/"rapier_wasm3d_bg.wasm"/"*"/g' pkg/package.json
(
cd pkg
npm pkg delete sideEffects
npm pkg set 'sideEffects[0]'="./*.js"
)
rm pkg/*.bak
rm pkg/.gitignore

0 comments on commit 50223ff

Please sign in to comment.