diff --git a/template/package.json b/template/package.json index 26c4708..da236f4 100644 --- a/template/package.json +++ b/template/package.json @@ -10,7 +10,7 @@ "devDependencies": { "@wasm-tool/wasm-pack-plugin": "^1.1.0", "copy-webpack-plugin": "^5.0.3", - "webpack": "^4.42.0", + "webpack": "^5.1.0", "webpack-cli": "^3.3.3", "webpack-dev-server": "^3.7.1", "rimraf": "^3.0.0" diff --git a/template/webpack.config.js b/template/webpack.config.js index d35da09..91967b3 100644 --- a/template/webpack.config.js +++ b/template/webpack.config.js @@ -16,6 +16,9 @@ module.exports = { devServer: { contentBase: dist, }, + experiments: { + asyncWebAssembly: true + }, plugins: [ new CopyPlugin([ path.resolve(__dirname, "static")