diff --git a/packages/metro/src/babel-bridge.js b/packages/metro/src/babel-bridge.js index 04d83b6b..5e68b7f7 100644 --- a/packages/metro/src/babel-bridge.js +++ b/packages/metro/src/babel-bridge.js @@ -13,7 +13,6 @@ // This is a temporary migration bridge to switch between babel 6 and 7 -const externalHelpersPlugin7 = require('babel-plugin-external-helpers'); const inlineRequiresPlugin7 = require('babel-preset-fbjs/plugins/inline-requires'); const makeHMRConfig7 = makeMakeHMRConfig7(); @@ -47,7 +46,6 @@ function resolvePlugins7(plugins: Array) { } module.exports = { - externalHelpersPlugin: externalHelpersPlugin7, inlineRequiresPlugin: inlineRequiresPlugin7, makeHMRConfig: makeHMRConfig7, resolvePlugins: resolvePlugins7, diff --git a/packages/metro/src/transformer.js b/packages/metro/src/transformer.js index d65b3d96..4d97024e 100644 --- a/packages/metro/src/transformer.js +++ b/packages/metro/src/transformer.js @@ -12,11 +12,11 @@ 'use strict'; const crypto = require('crypto'); +const externalHelpersPlugin = require('babel-plugin-external-helpers'); const fs = require('fs'); const json5 = require('json5'); const path = require('path'); -const {externalHelpersPlugin} = require('./babel-bridge'); const {getPreset} = require('./babel-bridge'); const {inlineRequiresPlugin} = require('./babel-bridge'); const {makeHMRConfig} = require('./babel-bridge');