@@ -7,29 +7,23 @@ module.exports = {
77 [
88 '@babel/preset-env' ,
99 {
10- loose,
11- ...( test ? { targets : { node : '8' } } : { } )
10+ targets : {
11+ node : 'current'
12+ }
1213 }
1314 ] ,
1415 '@babel/preset-react' ,
15- '@babel/preset-flow '
16+ '@babel/preset-typescript '
1617 ] ,
1718 plugins : [
18- '@babel/plugin-transform-flow-strip-types' ,
19- '@babel/plugin-syntax-dynamic-import' ,
20- '@babel/plugin-syntax-import-meta' ,
21- [ '@babel/plugin-proposal-class-properties' , { loose } ] ,
22- '@babel/plugin-proposal-json-strings' ,
23- [
24- '@babel/plugin-proposal-decorators' ,
25- {
26- legacy : true
27- }
28- ] ,
29- '@babel/plugin-proposal-function-sent' ,
19+ '@babel/plugin-proposal-class-properties' ,
3020 '@babel/plugin-proposal-export-namespace-from' ,
3121 '@babel/plugin-proposal-numeric-separator' ,
3222 '@babel/plugin-proposal-throw-expressions' ,
33- test && '@babel/plugin-transform-react-jsx-source'
34- ] . filter ( Boolean )
23+ '@babel/plugin-proposal-json-strings' ,
24+ '@babel/plugin-syntax-dynamic-import' ,
25+ '@babel/plugin-syntax-import-meta' ,
26+ '@babel/plugin-proposal-function-sent' ,
27+ [ '@babel/plugin-proposal-decorators' , { legacy : true } ]
28+ ]
3529}
0 commit comments