fix(babel-types): Add assertions to ExportAllDeclaration (#12273)

This commit is contained in:
Sosuke Suzuki
2020-10-29 22:24:56 +09:00
committed by GitHub
parent b7754d3c82
commit d04b4dd116
2 changed files with 17 additions and 0 deletions

View File

@@ -1401,6 +1401,12 @@ defineType("ExportAllDeclaration", {
source: {
validate: assertNodeType("StringLiteral"),
},
assertions: {
validate: chain(
assertValueType("array"),
assertNodeType("ImportAttribute"),
),
},
},
});