Fix building without writing a source map

Reviewed By: bestander

Differential Revision: D3690117

fbshipit-source-id: f162352c09c4c2a387a9414dbd7da55b86551ee3
This commit is contained in:
David Aurelio 2016-08-09 09:38:32 -07:00 committed by Facebook Github Bot
parent f951da912d
commit a5678983bb

View File

@ -28,7 +28,7 @@ function buildBundle(args, config, output = outputBundle, packagerInstance) {
const requestOpts = {
entryFile: args.entryFile,
sourceMapUrl: path.basename(args.sourcemapOutput),
sourceMapUrl: args.sourcemapOutput && path.basename(args.sourcemapOutput),
dev: args.dev,
minify: !args.dev,
platform: args.platform,