mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-15 10:05:48 +00:00
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:
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user