Skip to content

Commit

Permalink
add more files to side effects
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Jul 22, 2024
1 parent 112f688 commit 0740686
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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 0740686

Please sign in to comment.