build: reduce webpack size of bip39 (#1747)

* remove non-english wordlists from bip39

* add webpack change to tests

* add bundlephobia badge
This commit is contained in:
Mayukha Vadari
2021-10-18 18:10:14 -04:00
committed by GitHub
parent 42ff3ec6d0
commit 61b2cb7fb6
3 changed files with 9 additions and 0 deletions

View File

@@ -26,6 +26,10 @@ function getDefaultConfiguration() {
),
new webpack.ProvidePlugin({ process: 'process/browser' }),
new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'] }),
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/wordlists\/(?!english)/,
contextRegExp: /bip39\/src$/,
}),
],
module: {
rules: [],