@@ -4,32 +4,19 @@ const loose = true
4
4
5
5
module . exports = {
6
6
presets : [
7
- [
8
- '@babel/preset-env' ,
9
- {
10
- loose,
11
- ...( test ? { targets : { node : '8' } } : { } )
12
- }
13
- ] ,
7
+ [ '@babel/preset-env' , { modules : false } ] ,
14
8
'@babel/preset-react' ,
15
- '@babel/preset-flow '
9
+ '@babel/preset-typescript '
16
10
] ,
17
11
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' ,
12
+ '@babel/plugin-proposal-class-properties' ,
13
+ '@babel/plugin-proposal-decorators' ,
30
14
'@babel/plugin-proposal-export-namespace-from' ,
15
+ '@babel/plugin-proposal-function-sent' ,
16
+ '@babel/plugin-proposal-json-strings' ,
31
17
'@babel/plugin-proposal-numeric-separator' ,
32
18
'@babel/plugin-proposal-throw-expressions' ,
33
- test && '@babel/plugin-transform-react-jsx-source'
34
- ] . filter ( Boolean )
19
+ '@babel/plugin-syntax-dynamic-import' ,
20
+ '@babel/plugin-syntax-import-meta'
21
+ ]
35
22
}
0 commit comments