Skip to content

Commit

Permalink
Fabo/fix unsafe eval (#151)
Browse files Browse the repository at this point in the history
* somehow webpack uses unsafe eval in development mode

* changelog
  • Loading branch information
faboweb authored Feb 20, 2020
1 parent aa692c8 commit a813f19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions pending/fabo_fix-unsafe-eval
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Repository] Fix unsafe-eval being used in development @faboweb
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ function resolve(dir) {
}

const config = {
devtool:
process.env.NODE_ENV === 'development'
? 'inline-cheap-source-map'
: undefined,
mode: process.env.NODE_ENV,
context: resolve('src'),
entry: {
Expand Down

0 comments on commit a813f19

Please sign in to comment.