Parse import-assertions (#12139)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
This commit is contained in:
@@ -162,7 +162,7 @@ defineType("ImportAttribute", {
|
||||
visitor: ["key", "value"],
|
||||
fields: {
|
||||
key: {
|
||||
validate: assertNodeType("Identifier"),
|
||||
validate: assertNodeType("Identifier", "StringLiteral"),
|
||||
},
|
||||
value: {
|
||||
validate: assertNodeType("StringLiteral"),
|
||||
|
||||
Reference in New Issue
Block a user