Make the public metro runBuild() command generate the sourcemaps

Reviewed By: davidaurelio

Differential Revision: D6666140

fbshipit-source-id: f49e0fdc848a4cec095c808887f5e999d86c104a
This commit is contained in:
Rafael Oleza 2018-01-05 09:24:23 -08:00 committed by Facebook Github Bot
parent f5198ad15f
commit 058336f3b6
1 changed files with 1 additions and 0 deletions

View File

@ -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`,
};