update metro to 0.47.1 to fix sourcemaps in plugins
Summary: Inline sourcemaps were broken in Metro until 0.47.1, so now we can debug flipper plugins again! Reviewed By: passy Differential Revision: D10200221 fbshipit-source-id: 919c1bc4f7aee720f25f2375ffbd8a786ebd0017
This commit is contained in:
committed by
Facebook Github Bot
parent
d69fb9e6a1
commit
44fea6b9bc
@@ -156,9 +156,6 @@ function compile(buildFolder) {
|
|||||||
minify: false,
|
minify: false,
|
||||||
resetCache: true,
|
resetCache: true,
|
||||||
sourceMap: 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'),
|
entry: path.join(__dirname, '..', 'src', 'init.js'),
|
||||||
out: path.join(buildFolder, 'bundle.js'),
|
out: path.join(buildFolder, 'bundle.js'),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -173,9 +173,6 @@ async function compilePlugin(
|
|||||||
out,
|
out,
|
||||||
dev: false,
|
dev: false,
|
||||||
sourceMap: 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',
|
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
|
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
|
||||||
"@babel/plugin-transform-modules-commonjs": "^7.1.0",
|
"@babel/plugin-transform-modules-commonjs": "^7.1.0",
|
||||||
"@babel/preset-react": "^7.0.0",
|
"@babel/preset-react": "^7.0.0",
|
||||||
"metro": "^0.45.3",
|
"metro": "^0.47.1",
|
||||||
"recursive-readdir": "2.2.2"
|
"recursive-readdir": "2.2.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {}
|
"devDependencies": {}
|
||||||
|
|||||||
783
static/yarn.lock
783
static/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user