remove babelrc.js, rely on webpack config instead

This commit is contained in:
Rares Mardare 2022-08-25 19:35:05 +03:00
parent 5965606de0
commit df1423eca6
2 changed files with 7 additions and 5 deletions

View file

@ -1,4 +0,0 @@
module.exports = {
presets: ['@babel/preset-env'],
plugins: [['@babel/plugin-proposal-decorators', { legacy: true }]],
};

View file

@ -61,6 +61,12 @@ module.exports.getWebpackConfig = (config, options) => {
loose: true,
},
],
[
'@babel/plugin-proposal-decorators',
{
legacy: true,
},
],
'@babel/plugin-transform-react-constant-elements',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining',
@ -86,7 +92,7 @@ module.exports.getWebpackConfig = (config, options) => {
localIdentName: options.production ? '[name]__[hash:base64]' : '[path][name]__[local]',
},
},
}
},
],
},
],