Permalink
Browse files

Improve error reporting

No more `NullError`. Those were caused by the `eval` in the source maps, which we block with CSP.
  • Loading branch information...
sindresorhus committed Oct 15, 2018
1 parent b479048 commit 9cdd7ffa1f3cf7037a3db7955730062cc39110d8
Showing with 17 additions and 2 deletions.
  1. +1 −0 package.json
  2. +1 −1 webpack.config.js
  3. +15 −1 yarn.lock
@@ -22,6 +22,7 @@
"cycled": "^1.0.0",
"date-fns": "^1.29.0",
"delay": "^4.1.0",
"electron-unhandled": "^1.1.0",
"emittery": "^0.4.1",
"filter-console": "^0.1.0",
"hoist-non-react-statics": "^3.0.1",
@@ -16,7 +16,7 @@ module.exports = (env, options) => ({
filename: 'bundle.js',
},
target: 'electron-renderer',
devtool: options.mode === 'production' ? 'source-map' : 'cheap-module-eval-source-map',
devtool: options.mode === 'production' ? 'source-map' : 'cheap-module-source-map',
devServer: {
historyApiFallback: true,
overlay: true,

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 9cdd7ff

Please sign in to comment.