File tree 5 files changed +553
-560
lines changed
5 files changed +553
-560
lines changed Original file line number Diff line number Diff line change 117
117
"prettier" : " ^2.6.2" ,
118
118
"puppeteer" : " ^14.3.0" ,
119
119
"rimraf" : " ^3.0.2" ,
120
- "rollup" : " ^2.75.6 " ,
121
- "rollup-plugin-typescript2" : " ^0.31.2 " ,
120
+ "rollup" : " ^2.79.1 " ,
121
+ "rollup-plugin-typescript2" : " ^0.32.0 " ,
122
122
"semver" : " ^7.3.7" ,
123
123
"shelljs" : " ^0.8.5" ,
124
124
"terser" : " ^5.14.0" ,
125
125
"todomvc-app-css" : " ^2.4.2" ,
126
126
"ts-node" : " ^10.8.1" ,
127
127
"tslib" : " ^2.4.0" ,
128
- "typescript" : " ^4.7.3 " ,
128
+ "typescript" : " ^4.8.4 " ,
129
129
"vitest" : " ^0.12.10" ,
130
130
"yorkie" : " ^2.0.0"
131
131
}
Original file line number Diff line number Diff line change 13
13
"source-map" : " ^0.6.1"
14
14
},
15
15
"devDependencies" : {
16
- "@babel/types" : " ^7.18 .4" ,
16
+ "@babel/types" : " ^7.19 .4" ,
17
17
"@types/estree" : " ^0.0.48" ,
18
18
"@types/hash-sum" : " ^1.0.0" ,
19
19
"@types/lru-cache" : " ^5.1.1" ,
Original file line number Diff line number Diff line change @@ -780,7 +780,7 @@ export function compileScript(
780
780
if ( node . trailingComments && node . trailingComments . length > 0 ) {
781
781
const lastCommentNode =
782
782
node . trailingComments [ node . trailingComments . length - 1 ]
783
- end = lastCommentNode . end + startOffset
783
+ end = lastCommentNode . end ! + startOffset
784
784
}
785
785
// locate the end of whitespace between this statement and the next
786
786
while ( end <= source . length ) {
@@ -1582,14 +1582,18 @@ function extractEventNames(
1582
1582
) {
1583
1583
const typeNode = eventName . typeAnnotation . typeAnnotation
1584
1584
if ( typeNode . type === 'TSLiteralType' ) {
1585
- if ( typeNode . literal . type !== 'UnaryExpression' ) {
1585
+ if (
1586
+ typeNode . literal . type !== 'UnaryExpression' &&
1587
+ typeNode . literal . type !== 'TemplateLiteral'
1588
+ ) {
1586
1589
emits . add ( String ( typeNode . literal . value ) )
1587
1590
}
1588
1591
} else if ( typeNode . type === 'TSUnionType' ) {
1589
1592
for ( const t of typeNode . types ) {
1590
1593
if (
1591
1594
t . type === 'TSLiteralType' &&
1592
- t . literal . type !== 'UnaryExpression'
1595
+ t . literal . type !== 'UnaryExpression' &&
1596
+ t . literal . type !== 'TemplateLiteral'
1593
1597
) {
1594
1598
emits . add ( String ( t . literal . value ) )
1595
1599
}
You can’t perform that action at this time.
0 commit comments