mirror of https://github.com/status-im/metro.git
Deploy v0.38.0
Reviewed By: jeffmo Differential Revision: D4428858 fbshipit-source-id: 10dc69349a2b563e1fa444a8b0612e3b2d4ccd1c
This commit is contained in:
parent
279f11a344
commit
78df7bd070
|
@ -59,6 +59,9 @@ function compactMapping(mapping: BabelRawMapping): RawMapping {
|
|||
}
|
||||
|
||||
if (typeof name !== 'string') {
|
||||
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
|
||||
* the deployment of v0.38.0. To see the error, remove this comment and run
|
||||
* flow */
|
||||
return ([line, column, original.line, original.column]: SourceMapping);
|
||||
}
|
||||
|
||||
|
@ -77,7 +80,13 @@ function addMappingsForFile(generator, mappings, module, carryOver) {
|
|||
mapping[0] + carryOver,
|
||||
// lines start at 1, columns start at 0
|
||||
mapping[0] === 1 && mapping[1] + columnOffset || mapping[1],
|
||||
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
|
||||
* the deployment of v0.38.0. To see the error, remove this comment and
|
||||
* run flow */
|
||||
mapping[2],
|
||||
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during
|
||||
* the deployment of v0.38.0. To see the error, remove this comment and
|
||||
* run flow */
|
||||
mapping[3],
|
||||
//$FlowIssue #15417846
|
||||
mapping[4],
|
||||
|
|
|
@ -71,6 +71,9 @@ function optimize(transformed, file, originalCode, options): TransformResult {
|
|||
}
|
||||
|
||||
function optimizeCode(code, map, filename, inliningOptions) {
|
||||
/* $FlowFixMe(>=0.38.0 site=react_native_fb) - Flow error detected during the
|
||||
* deployment of v0.38.0. To see the error, remove this comment and run flow
|
||||
*/
|
||||
return babel.transform(code, {
|
||||
plugins: [
|
||||
[constantFolding],
|
||||
|
|
Loading…
Reference in New Issue