Update to webpack5

This commit is contained in:
Benjamin Kampmann
2021-11-24 11:00:52 +01:00
parent a49a7fe1f9
commit 9835c4ad92
2 changed files with 11 additions and 6 deletions

View File

@@ -1,14 +1,15 @@
{
"scripts": {
"build": "webpack",
"serve": "webpack-dev-server"
"serve": "webpack-dev-server",
"test": "cargo test && wasm-pack test --node"
},
"devDependencies": {
"@wasm-tool/wasm-pack-plugin": "1.0.1",
"html-webpack-plugin": "^3.2.0",
"@wasm-tool/wasm-pack-plugin": "^1.3.3",
"html-webpack-plugin": "^5.3.1",
"text-encoding": "^0.7.0",
"webpack": "^4.29.4",
"webpack-cli": "^3.1.1",
"webpack-dev-server": "^3.1.0"
"webpack": "^5.58.2",
"webpack-cli": "^4.9.0",
"webpack-dev-server": "^4.3.1"
}
}

View File

@@ -10,6 +10,10 @@ module.exports = {
filename: 'index.js',
},
devtool: 'source-map',
experiments: {
asyncWebAssembly: true,
syncWebAssembly: true
},
plugins: [
new HtmlWebpackPlugin(),
new WasmPackPlugin({