bugs on firefox, chromium is unaffected
we need further investigation, but have no time to do so.
This commit is contained in:
@@ -1,20 +1,31 @@
|
||||
const path = require("path");
|
||||
const { experiments } = require("webpack");
|
||||
const { library } = require("webpack");
|
||||
const webpack = require("webpack");
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
entry: "./index.js",
|
||||
output: {
|
||||
filename: "bundle.js",
|
||||
path: path.resolve(__dirname, "dist"),
|
||||
path: path.resolve(__dirname, "dist")
|
||||
},
|
||||
plugins: [
|
||||
new webpack.IgnorePlugin({
|
||||
checkResource(resource) {
|
||||
return /.*\/wordlists\/(?!english).*\.json/.test(resource);
|
||||
},
|
||||
}
|
||||
}),
|
||||
new TerserPlugin({
|
||||
terserOptions: {
|
||||
mangle: {
|
||||
reserved: [
|
||||
"generateKeypair",
|
||||
"generateMnemonic",
|
||||
"getPairFromPrivate",
|
||||
"Key"
|
||||
]
|
||||
}
|
||||
}
|
||||
})
|
||||
],
|
||||
mode: "production",
|
||||
mode: "production"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user