From 6f9532da96fbd0f656a725b79d542c6284a18a23 Mon Sep 17 00:00:00 2001 From: Jonathan Nogueira Date: Mon, 26 Apr 2021 20:41:52 +0900 Subject: [PATCH] Webpack 5 changes to WebAssembly Webpack 5 requires that WebAssembly modules be flagged with either `asyncWebassembly: true` for the newer spec or (deprecated) `syncWebAssembly: true` for WebPack 4 implementation. https://webpack.js.org/configuration/experiments/ --- webpack.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index a2eeb72..b66b298 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -28,6 +28,9 @@ module.exports = (env, argv) => { }, ], }, + experiments: { + asyncWebAssembly: true + }, plugins: [ new CopyWebpackPlugin({ patterns: [