Unverified Commit 562640db authored by Vitaly Baev's avatar Vitaly Baev Committed by GitHub

(examples/with-webassembly) fixed for webpack 5 (#26440)

## Documentation / Examples

- [x] Make sure the linting passes

Fixes #26436

As mention in #25854 `with-webassembly` example doesn't work anymore after switching to webpack 5.
This PR adds webpack experimental configuration.
parent 4d13d671
module.exports = { module.exports = {
webpack(config) { webpack(config) {
config.output.webassemblyModuleFilename = 'static/wasm/[modulehash].wasm' config.output.webassemblyModuleFilename = 'static/wasm/[modulehash].wasm'
// Since Webpack 5 doesn't enable WebAssembly by default, we should do it manually
config.experiments = { asyncWebAssembly: true }
return config return config
}, },
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment