File tree Expand file tree Collapse file tree 5 files changed +553
-560
lines changed Expand file tree Collapse file tree 5 files changed +553
-560
lines changed Original file line number Diff line number Diff line change 117117 "prettier" : " ^2.6.2" ,
118118 "puppeteer" : " ^14.3.0" ,
119119 "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 " ,
122122 "semver" : " ^7.3.7" ,
123123 "shelljs" : " ^0.8.5" ,
124124 "terser" : " ^5.14.0" ,
125125 "todomvc-app-css" : " ^2.4.2" ,
126126 "ts-node" : " ^10.8.1" ,
127127 "tslib" : " ^2.4.0" ,
128- "typescript" : " ^4.7.3 " ,
128+ "typescript" : " ^4.8.4 " ,
129129 "vitest" : " ^0.12.10" ,
130130 "yorkie" : " ^2.0.0"
131131 }
Original file line number Diff line number Diff line change 1313 "source-map" : " ^0.6.1"
1414 },
1515 "devDependencies" : {
16- "@babel/types" : " ^7.18 .4" ,
16+ "@babel/types" : " ^7.19 .4" ,
1717 "@types/estree" : " ^0.0.48" ,
1818 "@types/hash-sum" : " ^1.0.0" ,
1919 "@types/lru-cache" : " ^5.1.1" ,
Original file line number Diff line number Diff line change @@ -780,7 +780,7 @@ export function compileScript(
780780 if ( node . trailingComments && node . trailingComments . length > 0 ) {
781781 const lastCommentNode =
782782 node . trailingComments [ node . trailingComments . length - 1 ]
783- end = lastCommentNode . end + startOffset
783+ end = lastCommentNode . end ! + startOffset
784784 }
785785 // locate the end of whitespace between this statement and the next
786786 while ( end <= source . length ) {
@@ -1582,14 +1582,18 @@ function extractEventNames(
15821582 ) {
15831583 const typeNode = eventName . typeAnnotation . typeAnnotation
15841584 if ( typeNode . type === 'TSLiteralType' ) {
1585- if ( typeNode . literal . type !== 'UnaryExpression' ) {
1585+ if (
1586+ typeNode . literal . type !== 'UnaryExpression' &&
1587+ typeNode . literal . type !== 'TemplateLiteral'
1588+ ) {
15861589 emits . add ( String ( typeNode . literal . value ) )
15871590 }
15881591 } else if ( typeNode . type === 'TSUnionType' ) {
15891592 for ( const t of typeNode . types ) {
15901593 if (
15911594 t . type === 'TSLiteralType' &&
1592- t . literal . type !== 'UnaryExpression'
1595+ t . literal . type !== 'UnaryExpression' &&
1596+ t . literal . type !== 'TemplateLiteral'
15931597 ) {
15941598 emits . add ( String ( t . literal . value ) )
15951599 }
You can’t perform that action at this time.
0 commit comments