Check AST shape instead of parser (#18724)
This commit is contained in:
1 parent
6690ebd09b
commit
7d80579f09
1 file changed
+1
-1
@@ -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" &&
|
||||
|
||||
Reference in new issue
Block a user