From 4133de04d7c4c482e4345dac58c9fe6e004c52cf Mon Sep 17 00:00:00 2001 From: Martin Bigio Date: Fri, 1 Apr 2016 08:07:20 -0700 Subject: [PATCH] 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 --- babel-preset/configs/hmr.js | 2 +- babel-preset/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/babel-preset/configs/hmr.js b/babel-preset/configs/hmr.js index 70212bdf9..9131810eb 100644 --- a/babel-preset/configs/hmr.js +++ b/babel-preset/configs/hmr.js @@ -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'], }] }, diff --git a/babel-preset/package.json b/babel-preset/package.json index b1b8e2aee..8e667c782 100644 --- a/babel-preset/package.json +++ b/babel-preset/package.json @@ -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",