Skip to content

Commit a567898

Browse files
davidaurelioFacebook Github Bot
authored andcommitted
Fix building without writing a source map
Reviewed By: bestander Differential Revision: D3690117 fbshipit-source-id: f162352c09c4c2a387a9414dbd7da55b86551ee3
1 parent f951da9 commit a567898

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

local-cli/bundle/buildBundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function buildBundle(args, config, output = outputBundle, packagerInstance) {
2828

2929
const requestOpts = {
3030
entryFile: args.entryFile,
31-
sourceMapUrl: path.basename(args.sourcemapOutput),
31+
sourceMapUrl: args.sourcemapOutput && path.basename(args.sourcemapOutput),
3232
dev: args.dev,
3333
minify: !args.dev,
3434
platform: args.platform,

0 commit comments

Comments
 (0)