From 6b222c394f282eff76175da7c628286182df8a25 Mon Sep 17 00:00:00 2001 From: Peter van der Zee Date: Wed, 2 May 2018 10:06:42 -0700 Subject: [PATCH] Stop pulling externalHelpersPlugin from babel-bridge Reviewed By: mjesun Differential Revision: D7788848 fbshipit-source-id: 0c8787f097c9526de49a95554c2e28782cc4a077 --- packages/metro/src/babel-bridge.js | 2 -- packages/metro/src/transformer.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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');