bugs on firefox, chromium is unaffected

we need further investigation, but have no time to do so.
This commit is contained in:
2024-09-25 15:53:20 +03:00
parent ca521e033f
commit 0cd7ca7f65
6 changed files with 186 additions and 15 deletions

View File

@@ -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"
};