mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-19 00:46:47 +08:00
Revert D7319513: Depend on local version of babel-plugin-react-transform
Differential Revision: D7319513 Original commit changeset: 4945ec753087 fbshipit-source-id: 98de6a0fda19732c02ad780953497f9d9b451dea
This commit is contained in:
committed by
Facebook Github Bot
parent
f6bcd73ed7
commit
ad6938cda1
@@ -7,6 +7,7 @@
|
||||
'use strict';
|
||||
|
||||
var path = require('path');
|
||||
var resolvePlugins = require('../lib/resolvePlugins');
|
||||
|
||||
var hmrTransform = 'react-transform-hmr/lib/index.js';
|
||||
var transformPath = require.resolve(hmrTransform);
|
||||
@@ -22,9 +23,9 @@ module.exports = function(options, filename) {
|
||||
}
|
||||
|
||||
return {
|
||||
plugins: [
|
||||
plugins: resolvePlugins([
|
||||
[
|
||||
require('metro-babel7-plugin-react-transform').default,
|
||||
'react-transform',
|
||||
{
|
||||
transforms: [{
|
||||
transform: transform,
|
||||
@@ -33,6 +34,6 @@ module.exports = function(options, filename) {
|
||||
}]
|
||||
},
|
||||
]
|
||||
]
|
||||
])
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user