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:
Martin Bigio 2016-04-01 08:07:20 -07:00 committed by Facebook Github Bot 8
parent a74d05be62
commit 4133de04d7
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ module.exports = function(options, filename) {
{
transforms: [{
transform: transform,
imports: ['react-native'],
imports: ['react-native/Libraries/react-native/react-native.js'],
locals: ['module'],
}]
},

View File

@ -1,6 +1,6 @@
{
"name": "babel-preset-react-native",
"version": "1.5.5",
"version": "1.5.6",
"description": "Babel preset for React Native applications",
"main": "index.js",
"repository": "https://github.com/facebook/react-native/tree/master/babel-preset",