Permalink
Browse files

Fix building without writing a source map

Reviewed By: bestander

Differential Revision: D3690117

fbshipit-source-id: f162352c09c4c2a387a9414dbd7da55b86551ee3
  • Loading branch information...
1 parent f951da9 commit a5678983bb16ff48f91ed43caafba96ca322f7dc @davidaurelio davidaurelio committed with Facebook Github Bot Aug 9, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 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,

0 comments on commit a567898

Please sign in to comment.