const path = require("path"); const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin"); module.exports = { entry: { index: "./index.js" }, plugins: [ new WasmPackPlugin({ crateDirectory: __dirname, }), ], module: { rules: [ { test: /\.html$/i, loader: 'html-loader' } ] } };