pull/5370/head
filip mertens 2 years ago
parent 3fb5faa968
commit d9c741ca42
  1. 5
      apps/debugger/webpack.config.js
  2. 2
      apps/vyper/project.json
  3. 24
      apps/vyper/webpack.config.js
  4. 0
      libs/remix-tests/tests/testRunner.spec.ts

@ -10,6 +10,11 @@ module.exports = config => {
...nxWebpackConfig.resolve.fallback,
"crypto": require.resolve("crypto-browserify"),
"stream": require.resolve("stream-browserify"),
"http" : require.resolve("stream-http"),
"https" : require.resolve("https-browserify"),
"path" : require.resolve("path-browserify"),
"module": false,
"fs" : false
},
}
}

@ -25,7 +25,7 @@
],
"styles": ["apps/vyper/src/styles.css"],
"scripts": [],
"webpackConfig": "@nrwl/react/plugins/webpack"
"webpackConfig": "apps/vyper/webpack.config.js"
},
"configurations": {
"development": {

@ -1,17 +1,21 @@
const nxWebpack = require('@nrwl/react/plugins/webpack')
const TerserPlugin = require('terser-webpack-plugin')
module.exports = config => {
const nxWebpackConfig = nxWebpack(config)
const webpackConfig = {
...nxWebpackConfig,
node: {
fs: 'empty',
tls: 'empty',
readline: 'empty',
net: 'empty',
module: 'empty',
child_process: 'empty'
resolve : {
...nxWebpackConfig.resolve,
fallback: {
...nxWebpackConfig.resolve.fallback,
"crypto": require.resolve("crypto-browserify"),
"stream": require.resolve("stream-browserify"),
"http" : require.resolve("stream-http"),
"https" : require.resolve("https-browserify"),
"path" : require.resolve("path-browserify"),
"module": false,
"fs" : false
},
}
}
@ -20,10 +24,6 @@ module.exports = config => {
...webpackConfig,
mode: 'production',
devtool: 'source-map',
optimization: {
minimize: true,
minimizer: [new TerserPlugin()]
}
}
} else {
return webpackConfig

Loading…
Cancel
Save