Skip to content

Commit 058d163

Browse files
author
Keyan Zhang
committed
revert "Inline dev-only requires (facebook#7188)"
1 parent 26fcedc commit 058d163

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/isomorphic/classic/types/checkReactTypeSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
'use strict';
1313

14+
var ReactComponentTreeDevtool = require('ReactComponentTreeDevtool');
1415
var ReactPropTypeLocationNames = require('ReactPropTypeLocationNames');
1516
var ReactPropTypesSecret = require('ReactPropTypesSecret');
1617

@@ -73,7 +74,6 @@ function checkReactTypeSpec(typeSpecs, values, location, componentName, element,
7374
var componentStackInfo = '';
7475

7576
if (__DEV__) {
76-
var ReactComponentTreeDevtool = require('ReactComponentTreeDevtool');
7777
if (debugID !== null) {
7878
componentStackInfo = ReactComponentTreeDevtool.getStackAddendumByID(debugID);
7979
} else if (element !== null) {

src/renderers/shared/stack/reconciler/ReactChildReconciler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
'use strict';
1313

14+
var ReactComponentTreeDevtool = require('ReactComponentTreeDevtool');
1415
var ReactReconciler = require('ReactReconciler');
1516

1617
var instantiateReactComponent = require('instantiateReactComponent');
@@ -23,7 +24,6 @@ function instantiateChild(childInstances, child, name, selfDebugID) {
2324
// We found a component instance.
2425
var keyUnique = (childInstances[name] === undefined);
2526
if (__DEV__) {
26-
var ReactComponentTreeDevtool = require('ReactComponentTreeDevtool');
2727
warning(
2828
keyUnique,
2929
'flattenChildren(...): Encountered two children with the same key, ' +

0 commit comments

Comments
 (0)