feat: refactoring project

This commit is contained in:
Carlos
2024-11-23 14:56:07 -05:00
parent f0c2a50c18
commit 1c6db5818d
2351 changed files with 39323 additions and 60326 deletions

View File

@@ -11,7 +11,8 @@ function generateUid(scope, denyList) {
let uid;
let i = 1;
do {
uid = scope._generateUid(name, i);
uid = `_${name}`;
if (i > 1) uid += i;
i++;
} while (denyList.has(uid));
return uid;
@@ -19,13 +20,12 @@ function generateUid(scope, denyList) {
var _default = exports.default = (0, _helperPluginUtils.declare)(({
types: t,
template,
assertVersion,
version
assertVersion
}) => {
assertVersion("^7.12.0 || >8.0.0-alpha <8.0.0-beta");
return {
name: "transform-class-static-block",
inherits: version[0] === "8" ? undefined : require("@babel/plugin-syntax-class-static-block").default,
manipulateOptions: (_, parser) => parser.plugins.push("classStaticBlock"),
pre() {
(0, _helperCreateClassFeaturesPlugin.enableFeature)(this.file, _helperCreateClassFeaturesPlugin.FEATURES.staticBlocks, false);
},

File diff suppressed because one or more lines are too long