chore: babel

This commit is contained in:
cha0s 2021-03-27 09:05:59 -05:00
parent 34170ed0f9
commit 374dd3bcc8

View File

@ -5,9 +5,19 @@ const {
module.exports = (api) => { module.exports = (api) => {
api.cache(true); api.cache(true);
const plugins = [ const plugins = [
[
'@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-class-properties',
{
loose: true,
}
],
'@babel/plugin-proposal-optional-chaining', '@babel/plugin-proposal-optional-chaining',
[
'@babel/plugin-proposal-private-methods', '@babel/plugin-proposal-private-methods',
{
loose: true,
}
],
'@babel/plugin-syntax-jsx', '@babel/plugin-syntax-jsx',
[ [
'babel-plugin-webpack-alias', 'babel-plugin-webpack-alias',