Skip to content

Commit

Permalink
Don't include warning in production
Browse files Browse the repository at this point in the history
Fixes a size regression I introduced in #10802.
  • Loading branch information
gaearon committed Sep 28, 2017
1 parent d87804a commit 892f371
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/renderers/dom/shared/eventPlugins/SimpleEventPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 892f371

Please sign in to comment.