Skip to content

Commit

Permalink
Fix production sourcemaps (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpetitcolas authored and jaredpalmer committed Aug 5, 2018
1 parent 037ad53 commit 122f847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/razzle/config/createConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module.exports = (
// Specify target (either 'node' or 'web')
target: target,
// Controversially, decide on sourcemaps.
devtool: 'cheap-module-source-map',
devtool: IS_DEV ? 'cheap-module-source-map' : 'source-map',
// We need to tell webpack how to resolve both Razzle's node_modules and
// the users', so we use resolve and resolveLoader.
resolve: {
Expand Down Expand Up @@ -146,7 +146,7 @@ module.exports = (
{
test: /\.mjs$/,
include: /node_modules/,
type: "javascript/auto",
type: 'javascript/auto',
},
// Transform ES6 with Babel
{
Expand Down

0 comments on commit 122f847

Please sign in to comment.