Skip to content

Commit

Permalink
🐛 Fix default of config.server.sourceMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Steel Brain committed Jan 23, 2017
1 parent b23f756 commit 58784ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cli/src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export function fillCLIConfig(config: Object): CLIConfig {
invariant(typeof server.bundlePath === 'string', 'config.server.bundlePath must be a string')
toReturn.server.bundlePath = server.bundlePath
} else toReturn.server.bundlePath = '/bundle.js'
toReturn.server.sourceMap = !!server.sourceMap
if (server.sourceMap) {
toReturn.server.sourceMap = !!server.sourceMap
} else toReturn.server.sourceMap = true
if (server.sourceMapPath) {
invariant(typeof server.sourceMapPath === 'string', 'config.server.sourceMapPath must be a string')
toReturn.server.sourceMapPath = server.sourceMapPath
Expand Down

0 comments on commit 58784ce

Please sign in to comment.