Check AST shape instead of parser (#18724)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-01-23 10:03:50 +08:00
1 parent 6690ebd09b
commit 7d80579f09
1 file changed
+1 -1
+1 -1
View File
@@ -90,7 +90,7 @@ function printCallArguments(path, options, print) {
const maybeTrailingComma =
// Angular does not allow trailing comma
!options.parser.startsWith("__ng_") &&
path.root.type !== "NGRoot" &&
// Dynamic imports cannot have trailing commas
node.type !== "ImportExpression" &&
node.type !== "TSImportType" &&