Skip to content

Commit

Permalink
chore: remove tests and mocks from bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelCastilloB committed Dec 11, 2024
1 parent 33702d2 commit acc38f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/browser-extension-wallet/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ module.exports = () => {
return /.*\/wordlists\/(?!english).*\.json/.test(resource);
}
}),
new IgnorePlugin({
resourceRegExp: /\/(tests|test|__tests__|mocks)(\/|$)/,
contextRegExp: /.*/
}),
new IgnorePlugin({ resourceRegExp: /^\.\/wordlists\/(?!english)/, contextRegExp: /bip39\/src$/ }),
new NormalModuleReplacementPlugin(/blake2b$/, 'blake2b-no-wasm'),
new NormalModuleReplacementPlugin(/@emurgo\/cip14-js/, path.join(__dirname, './src/utils/cip14.js')),
Expand Down

0 comments on commit acc38f0

Please sign in to comment.