Use full path for react-native on HMR config
Summary:Fixes https://github.com/facebook/react-native/issues/6731 Closes https://github.com/facebook/react-native/pull/6748 Differential Revision: D3126410 Pulled By: martinbigio fb-gh-sync-id: fc462ec82e72914d13341a4543212c017bd3838c fbshipit-source-id: fc462ec82e72914d13341a4543212c017bd3838c
This commit is contained in:
parent
a74d05be62
commit
4133de04d7
|
@ -25,7 +25,7 @@ module.exports = function(options, filename) {
|
||||||
{
|
{
|
||||||
transforms: [{
|
transforms: [{
|
||||||
transform: transform,
|
transform: transform,
|
||||||
imports: ['react-native'],
|
imports: ['react-native/Libraries/react-native/react-native.js'],
|
||||||
locals: ['module'],
|
locals: ['module'],
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "babel-preset-react-native",
|
"name": "babel-preset-react-native",
|
||||||
"version": "1.5.5",
|
"version": "1.5.6",
|
||||||
"description": "Babel preset for React Native applications",
|
"description": "Babel preset for React Native applications",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": "https://github.com/facebook/react-native/tree/master/babel-preset",
|
"repository": "https://github.com/facebook/react-native/tree/master/babel-preset",
|
||||||
|
|
Loading…
Reference in New Issue