Skip to content

Commit 29f1aed

Browse files
authored
Don't include warning in production (#10946)
Fixes a size regression I introduced in #10802.
1 parent e271e13 commit 29f1aed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/renderers/dom/shared/eventPlugins/SimpleEventPlugin.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ var SyntheticUIEvent = require('SyntheticUIEvent');
2424
var SyntheticWheelEvent = require('SyntheticWheelEvent');
2525

2626
var getEventCharCode = require('getEventCharCode');
27-
var warning = require('fbjs/lib/warning');
27+
28+
if (__DEV__) {
29+
var warning = require('fbjs/lib/warning');
30+
}
2831

2932
import type {TopLevelTypes} from 'BrowserEventConstants';
3033
import type {

0 commit comments

Comments
 (0)