File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 5
5
" stage-1"
6
6
],
7
7
"plugins" : [
8
- " lodash"
8
+ " lodash" ,
9
+ " transform-react-constant-elements" ,
10
+ [" transform-react-remove-prop-types" , {
11
+ "mode" : " wrap"
12
+ }],
13
+ [" transform-runtime" , {
14
+ "polyfill" : false ,
15
+ "regenerator" : false
16
+ }]
9
17
],
10
18
"env" : {
11
19
"development" : {
Original file line number Diff line number Diff line change 56
56
"babel-plugin-__coverage__" : " ^11.0.0" ,
57
57
"babel-plugin-lodash" : " ^3.1.4" ,
58
58
"babel-plugin-react-transform" : " ^2.0.2" ,
59
+ "babel-plugin-transform-react-constant-elements" : " ^6.9.1" ,
60
+ "babel-plugin-transform-runtime" : " ^6.15.0" ,
59
61
"babel-preset-es2015" : " ^6.18.0" ,
60
62
"babel-preset-react" : " ^6.5.0" ,
61
63
"babel-preset-stage-1" : " ^6.5.0" ,
62
64
"babel-register" : " ^6.18.0" ,
65
+ "babel-runtime" : " ^6.18.0" ,
63
66
"babel-standalone" : " ^6.18.0" ,
64
67
"brace" : " ^0.8.0" ,
65
68
"chai" : " ^3.5.0" ,
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ const webpackUMDConfig = {
22
22
externals : {
23
23
react : 'React' ,
24
24
'react-dom' : 'ReactDOM' ,
25
- Babel : 'babel-standalone' ,
26
25
} ,
27
26
plugins : [
27
+ new webpack . DefinePlugin ( config . compiler_globals ) ,
28
28
new webpack . optimize . OccurrenceOrderPlugin ( ) ,
29
29
new webpack . optimize . DedupePlugin ( ) ,
30
30
new webpack . optimize . UglifyJsPlugin ( {
You can’t perform that action at this time.
0 commit comments