From 58784ce501b9dc0449e8cda27e41c078e95d104a Mon Sep 17 00:00:00 2001 From: Steel Brain Date: Mon, 23 Jan 2017 22:13:54 +0500 Subject: [PATCH] :bug: Fix default of config.server.sourceMap --- packages/cli/src/helpers.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/helpers.js b/packages/cli/src/helpers.js index 776096e8..f9072148 100644 --- a/packages/cli/src/helpers.js +++ b/packages/cli/src/helpers.js @@ -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