CODEBASE: Update dev dependencies (#2246)

This commit is contained in:
catloversg
2025-07-18 04:21:03 +07:00
committed by GitHub
parent 64ae5eb40c
commit b8398ba4c1
5 changed files with 3467 additions and 3785 deletions
+1 -2
View File
@@ -74,7 +74,7 @@ export function parseAST(scriptName: string, hostname: string, code: string, fil
if (fileType === FileType.JS) {
ast = acorn.parse(code, { sourceType: "module", ecmaVersion: "latest" });
} else {
const plugins = [];
const plugins: ("jsx" | "typescript")[] = [];
if (fileTypeFeature.isReact) {
plugins.push("jsx");
}
@@ -83,7 +83,6 @@ export function parseAST(scriptName: string, hostname: string, code: string, fil
}
ast = babel.packages.parser.parse(code, {
sourceType: "module",
ecmaVersion: "latest",
/**
* The usage of the "estree" plugin is mandatory. We use acorn-walk to walk the AST. acorn-walk only supports the
* ESTree AST format, but babel-parser uses the Babel AST format by default.