mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-05 13:25:48 +00:00
Compare commits
1 Commits
ripple-key
...
nn/webpack
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63277d81cf |
@@ -34,12 +34,6 @@ function webpackForTest(testFileName) {
|
||||
filename: match[1] + '.js',
|
||||
},
|
||||
plugins: [
|
||||
new webpack.ProvidePlugin({ process: 'process/browser' }),
|
||||
new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'] }),
|
||||
new webpack.IgnorePlugin({
|
||||
resourceRegExp: /^\.\/wordlists\/(?!english)/,
|
||||
contextRegExp: /bip39\/src$/,
|
||||
}),
|
||||
// this is a bit of a hack to prevent 'bn.js' from being installed 6 times
|
||||
// TODO: any package that is updated to use bn.js 5.x needs to be removed from `bnJsReplaces` above
|
||||
// https://github.com/webpack/webpack/issues/5593#issuecomment-390356276
|
||||
@@ -52,6 +46,12 @@ function webpackForTest(testFileName) {
|
||||
resource.request = 'diffie-hellman/node_modules/bn.js'
|
||||
}
|
||||
}),
|
||||
new webpack.ProvidePlugin({ process: 'process/browser' }),
|
||||
new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'] }),
|
||||
new webpack.IgnorePlugin({
|
||||
resourceRegExp: /^\.\/wordlists\/(?!english)/,
|
||||
contextRegExp: /bip39\/src$/,
|
||||
}),
|
||||
],
|
||||
module: {
|
||||
rules: [
|
||||
|
||||
@@ -24,13 +24,6 @@ function getDefaultConfiguration() {
|
||||
filename: `xrpl.default.js`,
|
||||
},
|
||||
plugins: [
|
||||
new webpack.NormalModuleReplacementPlugin(/^ws$/, './WSWrapper'),
|
||||
new webpack.ProvidePlugin({ process: 'process/browser' }),
|
||||
new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'] }),
|
||||
new webpack.IgnorePlugin({
|
||||
resourceRegExp: /^\.\/wordlists\/(?!english)/,
|
||||
contextRegExp: /bip39\/src$/,
|
||||
}),
|
||||
// this is a bit of a hack to prevent 'bn.js' from being installed 6 times
|
||||
// TODO: any package that is updated to use bn.js 5.x needs to be removed from `bnJsReplaces` above
|
||||
// https://github.com/webpack/webpack/issues/5593#issuecomment-390356276
|
||||
@@ -43,6 +36,13 @@ function getDefaultConfiguration() {
|
||||
resource.request = 'diffie-hellman/node_modules/bn.js'
|
||||
}
|
||||
}),
|
||||
new webpack.NormalModuleReplacementPlugin(/^ws$/, './WSWrapper'),
|
||||
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