mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-08 16:04:13 -04:00
Update to webpack5
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,10 @@ module.exports = {
|
||||
filename: 'index.js',
|
||||
},
|
||||
devtool: 'source-map',
|
||||
experiments: {
|
||||
asyncWebAssembly: true,
|
||||
syncWebAssembly: true
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin(),
|
||||
new WasmPackPlugin({
|
||||
|
||||
Reference in New Issue
Block a user