Skip to content

Commit

Permalink
add ignore plugin for bip39
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Feb 9, 2023
1 parent 8b692b8 commit 802d440
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/torus-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import path from "path";
import fs from "fs";
import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer";
import nodeExternals from "webpack-node-externals";
import webpack from "webpack";
import webpack, { IgnorePlugin } from "webpack";
import { createRequire } from "node:module";

const require = createRequire(import.meta.url);
import paths, { moduleFileExtensions } from "./paths.js";
import babelConfig from "./babel.config.js";
Expand Down Expand Up @@ -156,7 +157,7 @@ export const getDefaultBaseConfig = () => {
"bn.js": require.resolve("bn.js/lib/bn.js"),
},
},
plugins: [],
plugins: [new IgnorePlugin({ resourceRegExp: /^\.\/wordlists\/(?!english)/, contextRegExp: /bip39\/src$/ })],
module: {
rules: [babelLoader],
},
Expand Down

0 comments on commit 802d440

Please sign in to comment.