mirror of https://github.com/webpack/webpack.git
24 lines
425 B
JavaScript
24 lines
425 B
JavaScript
"use strict";
|
|
|
|
module.exports = {
|
|
// mode: "development || "production",
|
|
output: {
|
|
webassemblyModuleFilename: "[hash].wasm",
|
|
publicPath: "dist/"
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.wasm$/,
|
|
type: "webassembly/async"
|
|
}
|
|
]
|
|
},
|
|
optimization: {
|
|
chunkIds: "deterministic" // To keep filename consistent between different modes (for example building only)
|
|
},
|
|
experiments: {
|
|
asyncWebAssembly: true
|
|
}
|
|
};
|