Skip to content

Commit

Permalink
Use eval-source-map in prod mode
Browse files Browse the repository at this point in the history
Fixes an issue where invalid prod mode source maps cause browsers to be
unable to open the client when built in prod mode.

See webpack/webpack#8302
  • Loading branch information
andrewazores committed May 1, 2020
1 parent bcac698 commit 3f131f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const DotenvPlugin = require('dotenv-webpack');

module.exports = merge(common, {
mode: 'production',
devtool: 'source-map',
devtool: 'eval-source-map',
optimization: {
minimizer: [
new TerserJSPlugin({}),
Expand Down

0 comments on commit 3f131f8

Please sign in to comment.