add source map support
Summary: Use inline source maps for plugins and main bundle, both in production and development. Reviewed By: passy Differential Revision: D9967235 fbshipit-source-id: 245e65c6fea94b93dc34a65ae572b7fc98ad56e1
This commit is contained in:
committed by
Facebook Github Bot
parent
777e9323de
commit
36d00bce4c
@@ -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'),
|
||||
},
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user