awkjs
Version:
The JavaScript compilation of GNU awk that runs in browser and NodeJS
32 lines (30 loc) • 682 B
JavaScript
const path = require("path");
module.exports = {
mode: "production",
entry: "./src/gawk.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "index.js",
library: 'awkjs',
libraryTarget: 'commonjs2',
libraryExport: 'default',
},
module: {
rules: [
{
test: /\.wasm$/,
exclude: /node_modules/,
type: 'webassembly/experimental',
}
]
},
resolve: {
fallback: {
fs: false,
path: false,
ws: false,
child_process: false,
crypto: false,
}
}
};