diff --git a/src/renderers/dom/shared/eventPlugins/SimpleEventPlugin.js b/src/renderers/dom/shared/eventPlugins/SimpleEventPlugin.js index 02973f910cd62..8c53cf882b3d3 100644 --- a/src/renderers/dom/shared/eventPlugins/SimpleEventPlugin.js +++ b/src/renderers/dom/shared/eventPlugins/SimpleEventPlugin.js @@ -24,7 +24,10 @@ var SyntheticUIEvent = require('SyntheticUIEvent'); var SyntheticWheelEvent = require('SyntheticWheelEvent'); var getEventCharCode = require('getEventCharCode'); -var warning = require('fbjs/lib/warning'); + +if (__DEV__) { + var warning = require('fbjs/lib/warning'); +} import type {TopLevelTypes} from 'BrowserEventConstants'; import type {