Skip to content

Commit

Permalink
Include React itself in the list of shims (#7453)
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 #7168 too but I'll just do an
early fix to ensure that #7168 is purely an npm change.
  • Loading branch information
sebmarkbage authored Aug 9, 2016
1 parent 34c4474 commit ca9167c
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 ca9167c

Please sign in to comment.