mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-07 09:27:29 +08:00
Depend on local version of babel-plugin-react-transform
Reviewed By: jeanlauliac Differential Revision: D7319513 fbshipit-source-id: 4945ec753087206cd01eca4ba9464672d5fb05ba
This commit is contained in:
committed by
Facebook Github Bot
parent
aabd5d1458
commit
fa7c322af4
@@ -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) {
|
||||
}]
|
||||
},
|
||||
]
|
||||
])
|
||||
]
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user