Skip to content

Commit

Permalink
DEV on side effects in ReactDOMDebugTool
Browse files Browse the repository at this point in the history
this should remove ReactDebugTool, ReactDOMUnknownPropertyDevtool, ReactDOMNullInputValuePropDevtool, and ReactDOMDebugTool from the prod bundle
  • Loading branch information
Keyan Zhang committed Jul 5, 2016
1 parent 7befb85 commit 80aceea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/renderers/dom/shared/ReactDOMDebugTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ var ReactDOMDebugTool = {
},
};

ReactDOMDebugTool.addDevtool(ReactDOMUnknownPropertyDevtool);
ReactDOMDebugTool.addDevtool(ReactDOMNullInputValuePropDevtool);
if (__DEV__) {
ReactDOMDebugTool.addDevtool(ReactDOMUnknownPropertyDevtool);
ReactDOMDebugTool.addDevtool(ReactDOMNullInputValuePropDevtool);
}

module.exports = ReactDOMDebugTool;

0 comments on commit 80aceea

Please sign in to comment.