Skip to content

Commit

Permalink
feat(typescript): update to typescript 3.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Feb 25, 2020
1 parent 6c0811f commit aa4d189
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"vermoji": "node scripts/vermoji.js"
},
"dependencies": {
"typescript": "3.7.5"
"typescript": "3.8.2"
},
"devDependencies": {
"@types/autoprefixer": "^9.1.1",
Expand Down
5 changes: 3 additions & 2 deletions src/compiler/transformers/static-to-meta/call-expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ export const parseCallExpression = (m: d.Module | d.ComponentCompilerMeta, node:

} else if (ts.isPropertyAccessExpression(node.expression)) {
// document.createElement('tag')
if (node.expression.name) {
visitCallExpressionArgs(m, node.expression.name, node.arguments);
const n = node.expression.name;
if (ts.isIdentifier(n) && n) {
visitCallExpressionArgs(m, n, node.arguments);
}
}
}
Expand Down

0 comments on commit aa4d189

Please sign in to comment.