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 657c1a45bd
commit b961ac3eff
1 changed files with 3 additions and 4 deletions

View File

@ -7,7 +7,6 @@
'use strict';
var path = require('path');
var resolvePlugins = require('../lib/resolvePlugins');
var hmrTransform = 'react-transform-hmr/lib/index.js';
var transformPath = require.resolve(hmrTransform);
@ -23,9 +22,9 @@ module.exports = function(options, filename) {
}
return {
plugins: resolvePlugins([
plugins: [
[
'react-transform',
require('metro-babel7-plugin-react-transform').default,
{
transforms: [{
transform: transform,
@ -34,6 +33,6 @@ module.exports = function(options, filename) {
}]
},
]
])
]
};
};