From 058336f3b60315d225933c0716a23f8982dd5517 Mon Sep 17 00:00:00 2001 From: Rafael Oleza Date: Fri, 5 Jan 2018 09:24:23 -0800 Subject: [PATCH] Make the public metro runBuild() command generate the sourcemaps Reviewed By: davidaurelio Differential Revision: D6666140 fbshipit-source-id: f49e0fdc848a4cec095c808887f5e999d86c104a --- packages/metro/src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/metro/src/index.js b/packages/metro/src/index.js index eb330fb8..afbe00d8 100644 --- a/packages/metro/src/index.js +++ b/packages/metro/src/index.js @@ -250,6 +250,7 @@ exports.runBuild = async (options: RunBuildOptions) => { const outputOptions: OutputOptions = { bundleOutput: options.out.replace(/(\.js)?$/, '.js'), + sourcemapOutput: options.out.replace(/(\.js)?$/, '.map'), dev: options.dev, platform: options.platform || `web`, };