mirror of https://github.com/status-im/metro.git
Depend on local version of babel-plugin-react-transform
Reviewed By: arcanis Differential Revision: D7337432 fbshipit-source-id: 3729359da0ccfd3161546ab3ea9331ad30fb6e8d
This commit is contained in:
parent
ad2d99512b
commit
9b90096a2a
|
@ -49,7 +49,6 @@
|
|||
"babel-core": "^6.24.1",
|
||||
"babel-generator": "^6.26.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-preset-es2015-node": "^6.1.1",
|
||||
"babel-preset-fbjs": "^2.1.4",
|
||||
|
@ -76,6 +75,7 @@
|
|||
"left-pad": "^1.1.3",
|
||||
"lodash.throttle": "^4.1.1",
|
||||
"merge-stream": "^1.0.1",
|
||||
"metro-babel7-plugin-react-transform": "0.30.2",
|
||||
"metro-babylon7": "0.31.0",
|
||||
"metro-cache": "0.31.0",
|
||||
"metro-core": "0.31.0",
|
||||
|
|
|
@ -132,7 +132,7 @@ function makeMakeHMRConfig7() {
|
|||
return {
|
||||
plugins: [
|
||||
[
|
||||
require('babel-plugin-react-transform').default,
|
||||
require('metro-babel7-plugin-react-transform').default,
|
||||
{
|
||||
transforms: [
|
||||
{
|
||||
|
|
|
@ -16,6 +16,7 @@ const blacklist = require('./blacklist');
|
|||
const debug = require('debug');
|
||||
const invariant = require('fbjs/lib/invariant');
|
||||
|
||||
const {makeHMRConfig} = require('./babel-bridge');
|
||||
const {Logger} = require('metro-core');
|
||||
const {fromRawMappings, toSegmentTuple} = require('metro-source-map');
|
||||
|
||||
|
@ -28,6 +29,7 @@ exports.createBlacklist = blacklist;
|
|||
exports.sourceMaps = {fromRawMappings, compactMapping: toSegmentTuple};
|
||||
exports.createServer = createServer;
|
||||
exports.Logger = Logger;
|
||||
exports.makeHMRConfig = makeHMRConfig;
|
||||
|
||||
export type ConfigT = MetroConfig;
|
||||
type Options = {|
|
||||
|
|
Loading…
Reference in New Issue