Skip to content

Commit 6c6f7ff

Browse files
committed
Found a few more shared dependencies
renderSubtreeIntoContainer is only used by the DOM renderer. It's not an addon. ReactClass isn't needed as a dependency since injection doesn't happen anymore.
1 parent 7d3a5a3 commit 6c6f7ff

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

grunt/config/browserify.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ var SECRET_DOM_INTERNALS_NAME = 'ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_W
1919
var shimSharedModules = globalShim.configure({
2020
'./ReactCurrentOwner': SECRET_INTERNALS_NAME + '.ReactCurrentOwner',
2121
'./ReactComponentTreeHook': SECRET_INTERNALS_NAME + '.ReactComponentTreeHook',
22-
'./ReactElement': 'React', // All the methods that are shared are exposed.
22+
// All these methods are shared are exposed.
23+
'./ReactElement': 'React',
24+
'./ReactPropTypes': 'React.PropTypes',
25+
'./ReactChildren': 'React.Children',
2326
});
2427

2528
// Shim references to ReactDOM internals from addons.

src/renderers/dom/shared/ReactInjection.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ var DOMProperty = require('DOMProperty');
1515
var EventPluginHub = require('EventPluginHub');
1616
var EventPluginUtils = require('EventPluginUtils');
1717
var ReactComponentEnvironment = require('ReactComponentEnvironment');
18-
var ReactClass = require('ReactClass');
1918
var ReactEmptyComponent = require('ReactEmptyComponent');
2019
var ReactBrowserEventEmitter = require('ReactBrowserEventEmitter');
2120
var ReactHostComponent = require('ReactHostComponent');
2221
var ReactUpdates = require('ReactUpdates');
2322

2423
var ReactInjection = {
2524
Component: ReactComponentEnvironment.injection,
26-
Class: ReactClass.injection,
2725
DOMProperty: DOMProperty.injection,
2826
EmptyComponent: ReactEmptyComponent.injection,
2927
EventPluginHub: EventPluginHub.injection,

0 commit comments

Comments
 (0)