|
|
@ -35,46 +35,16 @@ module.exports = function(api) { |
|
|
|
'babel-plugin-macros', |
|
|
|
'babel-plugin-macros', |
|
|
|
'@babel/plugin-syntax-dynamic-import', |
|
|
|
'@babel/plugin-syntax-dynamic-import', |
|
|
|
isTestEnv && 'babel-plugin-dynamic-import-node', |
|
|
|
isTestEnv && 'babel-plugin-dynamic-import-node', |
|
|
|
[ |
|
|
|
|
|
|
|
'@babel/plugin-proposal-class-properties', |
|
|
|
'@babel/plugin-proposal-class-properties', |
|
|
|
{ |
|
|
|
'@babel/plugin-proposal-private-methods', |
|
|
|
loose: true |
|
|
|
'@babel/plugin-proposal-private-property-in-object', |
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
"@babel/plugin-proposal-private-methods", |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
loose: true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
"@babel/plugin-proposal-private-property-in-object", |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
loose: true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'@babel/plugin-proposal-object-rest-spread', |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
useBuiltIns: true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'@babel/plugin-transform-runtime', |
|
|
|
'@babel/plugin-transform-runtime', |
|
|
|
{ |
|
|
|
|
|
|
|
helpers: false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
[ |
|
|
|
|
|
|
|
'@babel/plugin-transform-regenerator', |
|
|
|
'@babel/plugin-transform-regenerator', |
|
|
|
{ |
|
|
|
'@babel/plugin-proposal-object-rest-spread', |
|
|
|
async: false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
[ |
|
|
|
[ |
|
|
|
"@babel/plugin-transform-spread", |
|
|
|
'@babel/plugin-transform-spread', |
|
|
|
{ |
|
|
|
{ |
|
|
|
"loose": true |
|
|
|
loose: true |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
].filter(Boolean) |
|
|
|
].filter(Boolean) |
|
|
|