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