mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-14 09:35:48 +00:00
Compare commits
1 Commits
@transia/r
...
nn/webpack
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63277d81cf |
@@ -34,12 +34,6 @@ function webpackForTest(testFileName) {
|
|||||||
filename: match[1] + '.js',
|
filename: match[1] + '.js',
|
||||||
},
|
},
|
||||||
plugins: [
|
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
|
// 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
|
// 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
|
// https://github.com/webpack/webpack/issues/5593#issuecomment-390356276
|
||||||
@@ -52,6 +46,12 @@ function webpackForTest(testFileName) {
|
|||||||
resource.request = 'diffie-hellman/node_modules/bn.js'
|
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: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
|||||||
@@ -24,13 +24,6 @@ function getDefaultConfiguration() {
|
|||||||
filename: `xrpl.default.js`,
|
filename: `xrpl.default.js`,
|
||||||
},
|
},
|
||||||
plugins: [
|
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
|
// 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
|
// 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
|
// https://github.com/webpack/webpack/issues/5593#issuecomment-390356276
|
||||||
@@ -43,6 +36,13 @@ function getDefaultConfiguration() {
|
|||||||
resource.request = 'diffie-hellman/node_modules/bn.js'
|
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: {
|
module: {
|
||||||
rules: [],
|
rules: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user