Skip to content

Commit b07c6cb

Browse files
committed
Include React itself in the list of shims
Without this we end up bundling all of the isomorphic React into the DOM bundle. This was fixed in facebook#7168 too but I'll just do an early fix to ensure that facebook#7168 is purely an npm change.
1 parent 34c4474 commit b07c6cb

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)