diff --git a/examples/with-webassembly/next.config.js b/examples/with-webassembly/next.config.js index 97e1bdca0ee6f25..24f0df7cd0473b9 100644 --- a/examples/with-webassembly/next.config.js +++ b/examples/with-webassembly/next.config.js @@ -1,6 +1,10 @@ module.exports = { webpack(config) { 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 }, }