From a2ee5bd307db55a5995865bc007771d8e47a7ce7 Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Mon, 25 Apr 2016 06:30:37 -0700 Subject: [PATCH] Fixed HMR for React Native Android Summary:Needs to be published to npm and version be updated in RN Closes https://github.com/facebook/react-native/pull/7208 Differential Revision: D3218870 Pulled By: davidaurelio fb-gh-sync-id: 1caac6eb79be16f2e3ed230f413835341c7291dc fbshipit-source-id: 1caac6eb79be16f2e3ed230f413835341c7291dc --- 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 d45d4369a..0fff0fc9a 100644 --- a/babel-preset/configs/hmr.js +++ b/babel-preset/configs/hmr.js @@ -31,7 +31,7 @@ module.exports = function(options, filename) { { transforms: [{ transform: transform, - imports: ['react-native/Libraries/react-native/react-native.js'], + imports: ['react'], locals: ['module'], }] }, diff --git a/babel-preset/package.json b/babel-preset/package.json index 19147e041..87cf38d5e 100644 --- a/babel-preset/package.json +++ b/babel-preset/package.json @@ -1,6 +1,6 @@ { "name": "babel-preset-react-native", - "version": "1.5.7", + "version": "1.6.0", "description": "Babel preset for React Native applications", "main": "index.js", "repository": "https://github.com/facebook/react-native/tree/master/babel-preset",