Open CinchBlue opened 1 month ago
This seems related to this change in v0.13.0:
- Declare ES module in package.json - gthb, https://github.com/rustwasm/wasm-pack/issues/1039, https://github.com/rustwasm/wasm-pack/pull/1061
can confirm this change is causing some issues on our end (the change of declared module type), is there a way to select the type of the output package ?
🐛 Bug description
When building using
v0.13.0
vs.v0.12.1
, our existing NextJS/wasm-pack build process will break within CI with an opaque error message.🤔 Expected Behavior
It should continue to work?
👟 Steps to reproduce
Use a
package.json
that looks like this, then try to use an NPM package build withwasm-pack 0.13.0
with this:package.json
tsconfig.json
🌍 Your environment
Include the relevant details of your environment. wasm-pack version:
0.13.0
rustc version:rustc 1.79.0-nightly (385fa9d84 2024-04-04)
npm version:18.17.0