Depend on local version of babel-plugin-react-transform

Reviewed By: arcanis

Differential Revision: D7337432

fbshipit-source-id: 3729359da0ccfd3161546ab3ea9331ad30fb6e8d
This commit is contained in:
Peter van der Zee 2018-03-21 09:27:25 -07:00 committed by Facebook Github Bot
parent ad2d99512b
commit 9b90096a2a
3 changed files with 4 additions and 2 deletions

View File

@ -49,7 +49,6 @@
"babel-core": "^6.24.1", "babel-core": "^6.24.1",
"babel-generator": "^6.26.0", "babel-generator": "^6.26.0",
"babel-plugin-external-helpers": "^6.22.0", "babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-react-transform": "^3.0.0",
"babel-plugin-transform-flow-strip-types": "^6.21.0", "babel-plugin-transform-flow-strip-types": "^6.21.0",
"babel-preset-es2015-node": "^6.1.1", "babel-preset-es2015-node": "^6.1.1",
"babel-preset-fbjs": "^2.1.4", "babel-preset-fbjs": "^2.1.4",
@ -76,6 +75,7 @@
"left-pad": "^1.1.3", "left-pad": "^1.1.3",
"lodash.throttle": "^4.1.1", "lodash.throttle": "^4.1.1",
"merge-stream": "^1.0.1", "merge-stream": "^1.0.1",
"metro-babel7-plugin-react-transform": "0.30.2",
"metro-babylon7": "0.31.0", "metro-babylon7": "0.31.0",
"metro-cache": "0.31.0", "metro-cache": "0.31.0",
"metro-core": "0.31.0", "metro-core": "0.31.0",

View File

@ -132,7 +132,7 @@ function makeMakeHMRConfig7() {
return { return {
plugins: [ plugins: [
[ [
require('babel-plugin-react-transform').default, require('metro-babel7-plugin-react-transform').default,
{ {
transforms: [ transforms: [
{ {

View File

@ -16,6 +16,7 @@ const blacklist = require('./blacklist');
const debug = require('debug'); const debug = require('debug');
const invariant = require('fbjs/lib/invariant'); const invariant = require('fbjs/lib/invariant');
const {makeHMRConfig} = require('./babel-bridge');
const {Logger} = require('metro-core'); const {Logger} = require('metro-core');
const {fromRawMappings, toSegmentTuple} = require('metro-source-map'); const {fromRawMappings, toSegmentTuple} = require('metro-source-map');
@ -28,6 +29,7 @@ exports.createBlacklist = blacklist;
exports.sourceMaps = {fromRawMappings, compactMapping: toSegmentTuple}; exports.sourceMaps = {fromRawMappings, compactMapping: toSegmentTuple};
exports.createServer = createServer; exports.createServer = createServer;
exports.Logger = Logger; exports.Logger = Logger;
exports.makeHMRConfig = makeHMRConfig;
export type ConfigT = MetroConfig; export type ConfigT = MetroConfig;
type Options = {| type Options = {|