Remove `node_modules/react` from the list of discoverable haste modules

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
This commit is contained in:
David Aurelio 2016-07-05 06:34:00 -07:00 committed by Facebook Github Bot 7
parent 21be7ecccf
commit ed0b6b1ef5
1 changed files with 0 additions and 1 deletions

View File

@ -93,7 +93,6 @@ class Resolver {
(opts.blacklistRE && opts.blacklistRE.test(filepath));
},
providesModuleNodeModules: [
'react',
'react-native',
'react-native-windows',
// Parse requires AsyncStorage. They will