also adds supporting methods l/e int32 byteArray2int & int2byteArray creates TextEncoder, TextDecoder objects in global module scope creates magic value METADATA_LENGTH of 1020 + 4 (4 bytes * 255 chars, 4 bytes for int32)
14 lines
235 B
JavaScript
14 lines
235 B
JavaScript
const path = require("path");
|
|
|
|
module.exports = {
|
|
entry: "./index.js",
|
|
output: {
|
|
filename: "bundle.js",
|
|
path: path.resolve(__dirname, "dist"),
|
|
},
|
|
experiments: {
|
|
syncWebAssembly: true,
|
|
},
|
|
mode: "development",
|
|
};
|