feature/replace-eccrypto
pubkey 2 years ago
parent 1991dc25f5
commit b52293c532
  1. 7
      config/webpack.config.js

@ -18,7 +18,6 @@ module.exports = {
optimization: { optimization: {
minimizer: [ minimizer: [
new TerserPlugin({ new TerserPlugin({
cache: true,
parallel: true, parallel: true,
}) })
] ]
@ -27,5 +26,11 @@ module.exports = {
output: { output: {
path: path.resolve(__dirname, '../test_tmp'), path: path.resolve(__dirname, '../test_tmp'),
filename: 'webpack.bundle.js' filename: 'webpack.bundle.js'
},
resolve: {
fallback: {
'crypto': require.resolve('crypto-browserify'),
'stream': require.resolve('stream-browserify')
}
} }
}; };

Loading…
Cancel
Save