mirror of https://github.com/webpack/webpack.git
22 lines
332 B
JavaScript
22 lines
332 B
JavaScript
"use strict";
|
|
|
|
/** @type {import("../../../../").Configuration} */
|
|
module.exports = {
|
|
entry: "./index",
|
|
output: {
|
|
webassemblyModuleFilename: "[id].[hash:3].wasm"
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.wat$/,
|
|
loader: "wast-loader",
|
|
type: "webassembly/sync"
|
|
}
|
|
]
|
|
},
|
|
experiments: {
|
|
syncWebAssembly: true
|
|
}
|
|
};
|