diff --git a/scripts/build-release.js b/scripts/build-release.js index 5810b83ee..5ba88b01c 100755 --- a/scripts/build-release.js +++ b/scripts/build-release.js @@ -156,6 +156,9 @@ function compile(buildFolder) { minify: false, resetCache: true, sourceMap: true, + // due to a bug in metro inline source maps are only created when + // sourceMapUrl is truthy: https://github.com/facebook/metro/pull/260 + sourceMapUrl: 'inline', entry: path.join(__dirname, '..', 'src', 'init.js'), out: path.join(buildFolder, 'bundle.js'), }, diff --git a/static/compilePlugins.js b/static/compilePlugins.js index a30714770..80a01e89d 100644 --- a/static/compilePlugins.js +++ b/static/compilePlugins.js @@ -173,6 +173,9 @@ async function compilePlugin( out, dev: false, sourceMap: true, + // due to a bug in metro inline source maps are only created when + // sourceMapUrl is truthy: https://github.com/facebook/metro/pull/260 + sourceMapUrl: 'inline', }, ); } catch (e) {