Skip to content

Commit

Permalink
Adding server source map support
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCis committed Jun 2, 2018
1 parent 05d2c3a commit f7b2e4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/razzle/config/createConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ module.exports = (
config.watch = true;
config.entry.unshift('webpack/hot/poll?300');

const nodeArgs = [];
const nodeArgs = ['-r', 'source-map-support/register'];

// Add --inspect or --inspect-brk flag when enabled
if (process.env.INSPECT_BRK_ENABLED) {
Expand Down
1 change: 1 addition & 0 deletions packages/razzle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"razzle-dev-utils": "^2.0.0",
"react-dev-utils": "^4.0.0",
"react-error-overlay": "^2.0.0",
"source-map-support": "^0.5.6",
"start-server-webpack-plugin": "2.2.5",
"style-loader": "0.20.3",
"uglifyjs-webpack-plugin": "1.2.4",
Expand Down

0 comments on commit f7b2e4a

Please sign in to comment.