Skip to content

Commit cc85153

Browse files
chore: remove tests and mocks from bundle (#1586)
1 parent eaa7240 commit cc85153

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/browser-extension-wallet/webpack.common.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ module.exports = () => {
8585
return /.*\/wordlists\/(?!english).*\.json/.test(resource);
8686
}
8787
}),
88+
new IgnorePlugin({
89+
resourceRegExp: /\/(tests|test|__tests__|mocks)(\/|$)/,
90+
contextRegExp: /.*/
91+
}),
8892
new IgnorePlugin({ resourceRegExp: /^\.\/wordlists\/(?!english)/, contextRegExp: /bip39\/src$/ }),
8993
new NormalModuleReplacementPlugin(/blake2b$/, 'blake2b-no-wasm'),
9094
new NormalModuleReplacementPlugin(/@emurgo\/cip14-js/, path.join(__dirname, './src/utils/cip14.js')),

0 commit comments

Comments
 (0)