Skip to content

Commit

Permalink
chore: bump build deps
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Oct 11, 2022
1 parent e1342df commit cc14d44
Show file tree
Hide file tree
Showing 5 changed files with 553 additions and 560 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@
"prettier": "^2.6.2",
"puppeteer": "^14.3.0",
"rimraf": "^3.0.2",
"rollup": "^2.75.6",
"rollup-plugin-typescript2": "^0.31.2",
"rollup": "^2.79.1",
"rollup-plugin-typescript2": "^0.32.0",
"semver": "^7.3.7",
"shelljs": "^0.8.5",
"terser": "^5.14.0",
"todomvc-app-css": "^2.4.2",
"ts-node": "^10.8.1",
"tslib": "^2.4.0",
"typescript": "^4.7.3",
"typescript": "^4.8.4",
"vitest": "^0.12.10",
"yorkie": "^2.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-sfc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"source-map": "^0.6.1"
},
"devDependencies": {
"@babel/types": "^7.18.4",
"@babel/types": "^7.19.4",
"@types/estree": "^0.0.48",
"@types/hash-sum": "^1.0.0",
"@types/lru-cache": "^5.1.1",
Expand Down
10 changes: 7 additions & 3 deletions packages/compiler-sfc/src/compileScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ export function compileScript(
if (node.trailingComments && node.trailingComments.length > 0) {
const lastCommentNode =
node.trailingComments[node.trailingComments.length - 1]
end = lastCommentNode.end + startOffset
end = lastCommentNode.end! + startOffset
}
// locate the end of whitespace between this statement and the next
while (end <= source.length) {
Expand Down Expand Up @@ -1582,14 +1582,18 @@ function extractEventNames(
) {
const typeNode = eventName.typeAnnotation.typeAnnotation
if (typeNode.type === 'TSLiteralType') {
if (typeNode.literal.type !== 'UnaryExpression') {
if (
typeNode.literal.type !== 'UnaryExpression' &&
typeNode.literal.type !== 'TemplateLiteral'
) {
emits.add(String(typeNode.literal.value))
}
} else if (typeNode.type === 'TSUnionType') {
for (const t of typeNode.types) {
if (
t.type === 'TSLiteralType' &&
t.literal.type !== 'UnaryExpression'
t.literal.type !== 'UnaryExpression' &&
t.literal.type !== 'TemplateLiteral'
) {
emits.add(String(t.literal.value))
}
Expand Down
Loading

0 comments on commit cc14d44

Please sign in to comment.