Update wasm-beep to webpack 5 (#684)

This commit is contained in:
Dan Wilhelm 2022-11-04 14:18:31 -07:00 • committed by GitHub
parent 7e17373e31
commit a9b34ea8bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5561 additions and 4772 deletions

View file

@ -14,8 +14,13 @@ module.exports = {
path: dist,
filename: "[name].js"
},
experiments: {
syncWebAssembly: true
},
devServer: {
contentBase: dist,
static: {
directory: dist
},
},
plugins: [
new HtmlWebpackPlugin({
@ -23,7 +28,7 @@ module.exports = {
}),
new WasmPackPlugin({
crateDirectory: __dirname,
extraArgs: "--out-name index"
outName: "index"
}),
]
};