chore: babel
This commit is contained in:
parent
34170ed0f9
commit
374dd3bcc8
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user