Try out different babel properties to fix compilation issues

This commit is contained in:
tobspr 2022-06-16 10:52:49 +02:00
parent 07fb65f3b6
commit bf5199d77a
1 changed files with 8 additions and 8 deletions

View File

@ -14,18 +14,18 @@ module.exports = function (api) {
], ],
]; ];
const plugins = [ const plugins = [
"closure-elimination", // "closure-elimination",
// var is faster than let and const! // var is faster than let and const!
[ // [
"@babel/plugin-transform-block-scoping", // "@babel/plugin-transform-block-scoping",
{ // {
throwIfClosureRequired: false, // throwIfClosureRequired: false,
}, // },
], // ],
[ [
"@babel/plugin-transform-classes", "@babel/plugin-transform-classes",
{ {
loose: true, loose: false,
}, },
], ],
]; ];