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:
Charles Dick
2018-10-04 12:10:40 -07:00
committed by Facebook Github Bot
parent d69fb9e6a1
commit 44fea6b9bc
4 changed files with 180 additions and 611 deletions

View File

@@ -156,9 +156,6 @@ 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'),
},

View File

@@ -173,9 +173,6 @@ 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) {

View File

@@ -13,7 +13,7 @@
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
"@babel/plugin-transform-modules-commonjs": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"metro": "^0.45.3",
"metro": "^0.47.1",
"recursive-readdir": "2.2.2"
},
"devDependencies": {}

File diff suppressed because it is too large Load Diff