mirror of
https://github.com/status-im/metro.git
synced 2025-01-12 03:54:21 +00:00
Stop pulling babylon from babel-bridge
Reviewed By: rubennorte Differential Revision: D7788535 fbshipit-source-id: 243824de7cecc32fbf47c57df6009178ca57f5fd
This commit is contained in:
parent
de30633c37
commit
ec4bad47e0
@ -11,8 +11,7 @@
|
||||
'use strict';
|
||||
|
||||
const babelTypes = require('@babel/types');
|
||||
|
||||
const {babylon} = require('../babel-bridge');
|
||||
const babylon = require('metro-babylon7');
|
||||
|
||||
import type {AssetDataWithoutFiles} from '../Assets';
|
||||
import type {ModuleTransportLike} from '../shared/types.flow';
|
||||
|
@ -13,6 +13,7 @@
|
||||
const JsFileWrapping = require('../ModuleGraph/worker/JsFileWrapping');
|
||||
|
||||
const assetTransformer = require('../assetTransformer');
|
||||
const babylon = require('metro-babylon7');
|
||||
const collectDependencies = require('../ModuleGraph/worker/collectDependencies');
|
||||
const constantFoldingPlugin = require('./worker/constant-folding-plugin');
|
||||
const crypto = require('crypto');
|
||||
@ -23,7 +24,6 @@ const inlinePlugin = require('./worker/inline-plugin');
|
||||
const optimizeDependencies = require('../ModuleGraph/worker/optimizeDependencies');
|
||||
const path = require('path');
|
||||
|
||||
const {babylon} = require('../babel-bridge');
|
||||
const {
|
||||
fromRawMappings,
|
||||
toBabelSegments,
|
||||
|
@ -13,7 +13,8 @@
|
||||
|
||||
const JsFileWrapping = require('../JsFileWrapping');
|
||||
|
||||
const {babylon} = require('../../../babel-bridge');
|
||||
const babylon = require('metro-babylon7');
|
||||
|
||||
const {codeFromAst, comparableCode} = require('../../test-helpers');
|
||||
|
||||
const {WRAP_NAME} = JsFileWrapping;
|
||||
|
@ -11,9 +11,9 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
const babylon = require('metro-babylon7');
|
||||
const collectDependencies = require('../collectDependencies');
|
||||
|
||||
const {babylon} = require('../../../babel-bridge');
|
||||
const {codeFromAst, comparableCode} = require('../../test-helpers');
|
||||
|
||||
const {any} = expect;
|
||||
|
@ -11,9 +11,9 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
const babylon = require('metro-babylon7');
|
||||
const optimizeDependencies = require('../optimizeDependencies');
|
||||
|
||||
const {babylon} = require('../../../babel-bridge');
|
||||
const {InvalidRequireCallError} = optimizeDependencies;
|
||||
|
||||
const {codeFromAst, comparableCode} = require('../../test-helpers');
|
||||
|
@ -19,10 +19,8 @@ const types = require('@babel/types');
|
||||
const generate = require('@babel/generator').default;
|
||||
const traverse = require('@babel/traverse').default;
|
||||
|
||||
const {
|
||||
babylon: {parse},
|
||||
} = require('../../../babel-bridge');
|
||||
const {fn} = require('../../test-helpers');
|
||||
const {parse} = require('metro-babylon7');
|
||||
const {SourceMapConsumer} = require('source-map');
|
||||
|
||||
import type {TransformVariants} from '../../types.flow';
|
||||
|
@ -13,7 +13,6 @@
|
||||
|
||||
// This is a temporary migration bridge to switch between babel 6 and 7
|
||||
|
||||
const babylon7 = require('metro-babylon7');
|
||||
const externalHelpersPlugin7 = require('babel-plugin-external-helpers');
|
||||
const inlineRequiresPlugin7 = require('babel-preset-fbjs/plugins/inline-requires');
|
||||
|
||||
@ -49,7 +48,6 @@ function resolvePlugins7(plugins: Array<any>) {
|
||||
|
||||
module.exports = {
|
||||
getBabelRegisterConfig: getBabelRegisterConfig7,
|
||||
babylon: babylon7,
|
||||
|
||||
externalHelpersPlugin: externalHelpersPlugin7,
|
||||
inlineRequiresPlugin: inlineRequiresPlugin7,
|
||||
|
Loading…
x
Reference in New Issue
Block a user