From ed0b6b1ef5480e4a8df0e48c6c4b6a0eb10f07b8 Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Tue, 5 Jul 2016 06:34:00 -0700 Subject: [PATCH] Remove `node_modules/react` from the list of discoverable haste modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: This removes `node_modules/react` from the list of directories that are used for haste module resolutions. Modules required from React are now imported with `require('react/lib/…')`. Reviewed By: astreet Differential Revision: D3509863 fbshipit-source-id: 32cd34e2b8496f0a6676dbe6bb1eacc18124c01e --- react-packager/src/Resolver/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/react-packager/src/Resolver/index.js b/react-packager/src/Resolver/index.js index c8faa60a..5d577e3d 100644 --- a/react-packager/src/Resolver/index.js +++ b/react-packager/src/Resolver/index.js @@ -93,7 +93,6 @@ class Resolver { (opts.blacklistRE && opts.blacklistRE.test(filepath)); }, providesModuleNodeModules: [ - 'react', 'react-native', 'react-native-windows', // Parse requires AsyncStorage. They will