File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,9 @@ function getPlugins(
350
350
languageOut : 'ECMASCRIPT5_STRICT' ,
351
351
env : 'CUSTOM' ,
352
352
warningLevel : 'QUIET' ,
353
- assumeFunctionWrapper : true ,
353
+ // Don't let it create global variables in the browser.
354
+ // https://github.com/facebook/react/issues/10909
355
+ assumeFunctionWrapper : bundleType !== UMD_PROD ,
354
356
applyInputSourceMaps : false ,
355
357
useTypesForOptimization : false ,
356
358
processCommonJsModules : false ,
Original file line number Diff line number Diff line change 5
5
"gzip" : 16507
6
6
},
7
7
"react.production.min.js (UMD_PROD)" : {
8
- "size" : 6598 ,
9
- "gzip" : 2753
8
+ "size" : 6634 ,
9
+ "gzip" : 2764
10
10
},
11
11
"react.development.js (NODE_DEV)" : {
12
12
"size" : 55305 ,
29
29
"gzip" : 148516
30
30
},
31
31
"react-dom.production.min.js (UMD_PROD)" : {
32
- "size" : 102900 ,
33
- "gzip" : 32047
32
+ "size" : 101633 ,
33
+ "gzip" : 32093
34
34
},
35
35
"react-dom.development.js (NODE_DEV)" : {
36
36
"size" : 606589 ,
61
61
"gzip" : 22083
62
62
},
63
63
"react-dom-unstable-native-dependencies.production.min.js (UMD_PROD)" : {
64
- "size" : 15415 ,
65
- "gzip" : 5073
64
+ "size" : 15432 ,
65
+ "gzip" : 5071
66
66
},
67
67
"react-dom-unstable-native-dependencies.development.js (NODE_DEV)" : {
68
68
"size" : 81143 ,
85
85
"gzip" : 34451
86
86
},
87
87
"react-dom-server.browser.production.min.js (UMD_PROD)" : {
88
- "size" : 14959 ,
89
- "gzip" : 5859
88
+ "size" : 14948 ,
89
+ "gzip" : 5844
90
90
},
91
91
"react-dom-server.browser.development.js (NODE_DEV)" : {
92
92
"size" : 104475 ,
You can’t perform that action at this time.
0 commit comments