We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59045bc commit 0ddd768Copy full SHA for 0ddd768
lib/mp-compiler/parse-ts.js
@@ -57,7 +57,7 @@ function delint (sourceFile) {
57
switch (node.kind) {
58
case ts.SyntaxKind.ImportDeclaration:
59
// 只处理 import Comp from 'xxx.vue'
60
- if (node.importClause.name) {
+ if (node.importClause && node.importClause.name) {
61
importsMap[node.importClause.name.escapedText] = node.moduleSpecifier.text
62
}
63
// report(node, 'import')
0 commit comments