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 11{
22 "presets" : [" @babel/env" , " @babel/react" ],
33 "plugins" : [
4+ // NOTE: plugin-proposal-decorators needs to precede plugin-proposal-class-properties.
45 [" @babel/plugin-proposal-decorators" , { "legacy" : true }],
56 [" @babel/plugin-proposal-class-properties" , { "loose" : false }]
67 ],
Original file line number Diff line number Diff line change @@ -22,13 +22,7 @@ module.exports = {
2222 test : / \. ( j s | j s x ) $ / ,
2323 use : [ {
2424 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' }
3226 } ] ,
3327 exclude : / n o d e _ m o d u l e s /
3428 } , {
You can’t perform that action at this time.
0 commit comments