-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wasm-pack and webpack 5 #835
Comments
wasm-bindgen is taking care of it. |
A short update on Webpack 5 support. If you're using the most recent version of Webpack you need to add the following to {
module: {
rules: [
{
test: /\.wasm$/,
type: 'webassembly/sync',
}
]
},
experiments: {
syncWebAssembly: true
}
} Note that this requires the now deprecated
You're using the new experimental Given that the working configuration is now deprecated, I'm curious to how |
I'm currently diving into Web Assembly, and I was wondering what is this "new Web Assembly spec", and whether it's something that wasm-pack will handle, or is there a consideration that we need to take into working with Rust itself. |
Finally, I found this! |
Any update on this? Still facing issues |
I am using
The export of the webpack's frequent breaking of backwards compatibility is disappointing, to say the least. Its documentation also contains many grammar mistakes that some of the maintainers refuse to correct, even when given pull requests with corrections of those errors and no other changes. I hope the Rust and WASM communities move on to better-documented and more consistent bundlers in the future. |
I am trying to make wasm-pack and webpack 5 works together.
They work well all together (out of the box) only for the most simple use case.
If memory or imports are necessary, modification has to be made to the wasm-pack build to adjust with:
I have several questions:
The text was updated successfully, but these errors were encountered: