2020-04-20 13:36:55 +08:00
|
|
|
/** @type {import("../../../../").Configuration} */
|
2018-07-02 22:18:49 +08:00
|
|
|
module.exports = {
|
|
|
|
entry: "./index",
|
2020-07-29 17:14:26 +08:00
|
|
|
output: {
|
|
|
|
webassemblyModuleFilename: "[id].[hash:3].wasm"
|
|
|
|
},
|
2018-07-02 22:18:49 +08:00
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.wat$/,
|
|
|
|
loader: "wast-loader",
|
2019-07-15 21:03:29 +08:00
|
|
|
type: "webassembly/sync"
|
2018-07-02 22:18:49 +08:00
|
|
|
}
|
|
|
|
]
|
2019-06-05 19:25:15 +08:00
|
|
|
},
|
|
|
|
experiments: {
|
|
|
|
syncWebAssembly: true,
|
|
|
|
importAwait: true
|
2018-07-02 22:18:49 +08:00
|
|
|
}
|
|
|
|
};
|