Include React itself in the list of shims (#7453)
Without this we end up bundling all of the isomorphic React into the DOM bundle. This was fixed in #7168 too but I'll just do an early fix to ensure that #7168 is purely an npm change.
Sebastian Markbåge committed
Aug 9, 2016 at 15:33 UTC
ca9167c20270613e87f969292e55aaffefbed9a2
1 file changed
+1
grunt/config/browserify.js
+1
@@ -22,6 +22,7 @@ var shimSharedModules = globalShim.configure({
22
// The methods we used here are exposed on the main React export.
23
// TODO: Change all renderer code to require the isomorphic React directly
24
// instead of these internals.
25
+ './React': 'React',
26
'./ReactElement': 'React',
27
'./ReactPropTypes': 'React.PropTypes',
28
'./ReactChildren': 'React.Children',