Don't include warning in production (#10946)

Fixes a size regression I introduced in #10802.
This commit is contained in:
Dan Abramov
2017-09-29 08:24:06 +01:00
committed by GitHub
parent e271e13809
commit 29f1aedb08

View File

@@ -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 {