File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"presets" : [" @babel/env" , " @babel/react" ],
3
3
"plugins" : [
4
+ // NOTE: plugin-proposal-decorators needs to precede plugin-proposal-class-properties.
4
5
[" @babel/plugin-proposal-decorators" , { "legacy" : true }],
5
6
[" @babel/plugin-proposal-class-properties" , { "loose" : false }]
6
7
],
Original file line number Diff line number Diff line change @@ -22,13 +22,7 @@ module.exports = {
22
22
test : / \. ( j s | j s x ) $ / ,
23
23
use : [ {
24
24
loader : 'babel-loader' ,
25
- options : {
26
- presets : [ '@babel/preset-env' , '@babel/preset-react' ] ,
27
- plugins : [
28
- [ '@babel/plugin-proposal-decorators' , { legacy : true } ] , // NOTE: needs to precede ..-class-properties!
29
- [ '@babel/plugin-proposal-class-properties' , { loose : false } ] ,
30
- ]
31
- }
25
+ options : { configFile : './.babelrc' }
32
26
} ] ,
33
27
exclude : / n o d e _ m o d u l e s /
34
28
} , {
You can’t perform that action at this time.
0 commit comments