refactor: babel

This commit is contained in:
cha0s 2022-04-04 03:11:51 -05:00
parent 976969683f
commit a6dff85d99

View File

@ -10,6 +10,9 @@ module.exports = (api) => {
setSpreadProperties: true, setSpreadProperties: true,
}, },
plugins: [ plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-logical-assignment-operators',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining', '@babel/plugin-proposal-optional-chaining',
], ],
presets: [ presets: [
@ -19,6 +22,7 @@ module.exports = (api) => {
exclude: [ exclude: [
'@babel/plugin-transform-regenerator', '@babel/plugin-transform-regenerator',
'@babel/plugin-transform-async-to-generator', '@babel/plugin-transform-async-to-generator',
'@babel/plugin-transform-object-super',
], ],
}, },
], ],