From a5678983bb16ff48f91ed43caafba96ca322f7dc Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Tue, 9 Aug 2016 09:38:32 -0700 Subject: [PATCH] Fix building without writing a source map Reviewed By: bestander Differential Revision: D3690117 fbshipit-source-id: f162352c09c4c2a387a9414dbd7da55b86551ee3 --- local-cli/bundle/buildBundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 8c989e521..2693e4917 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -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,