From ca9167c20270613e87f969292e55aaffefbed9a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Markb=C3=A5ge?= Date: Tue, 9 Aug 2016 15:33:34 -0700 Subject: [PATCH] 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. --- grunt/config/browserify.js | 1 + 1 file changed, 1 insertion(+) diff --git a/grunt/config/browserify.js b/grunt/config/browserify.js index 9ac07bb71e..e7d2674b61 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',