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
657c1a45bd
commit
b961ac3eff
|
@ -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) {
|
|||
}]
|
||||
},
|
||||
]
|
||||
])
|
||||
]
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue