Skip to content

Commit

Permalink
Include React itself in the list of shims
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sebmarkbage committed Aug 9, 2016
1 parent 34c4474 commit b07c6cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions grunt/config/browserify.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var shimSharedModules = globalShim.configure({
// The methods we used here are exposed on the main React export.
// TODO: Change all renderer code to require the isomorphic React directly
// instead of these internals.
'./React': 'React',
'./ReactElement': 'React',
'./ReactPropTypes': 'React.PropTypes',
'./ReactChildren': 'React.Children',
Expand Down

0 comments on commit b07c6cb

Please sign in to comment.