Skip to content

Commit 556bd43

Browse files
sebmarkbagezpao
authored andcommitted
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. (cherry picked from commit ca9167c)
1 parent 8426faf commit 556bd43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

grunt/config/browserify.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ var shimSharedModules = globalShim.configure({
2222
// The methods we used here are exposed on the main React export.
2323
// TODO: Change all renderer code to require the isomorphic React directly
2424
// instead of these internals.
25+
'./React': 'React',
2526
'./ReactElement': 'React',
2627
'./ReactPropTypes': 'React.PropTypes',
2728
'./ReactChildren': 'React.Children',

0 commit comments

Comments
 (0)