From b07c6cb0d24f534ab58c7b39e34836771ae37b91 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Tue, 9 Aug 2016 14:31:39 -0700 Subject: [PATCH] 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 #7168 too but I'll just do an early fix to ensure that #7168 is purely an npm change. --- grunt/config/browserify.js | 1 + 1 file changed, 1 insertion(+) diff --git a/grunt/config/browserify.js b/grunt/config/browserify.js index 9ac07bb71e233..e7d2674b61afa 100644 --- a/grunt/config/browserify.js +++ b/grunt/config/browserify.js @@ -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',