Skip to content

Commit

Permalink
wip: save
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Dec 8, 2024
1 parent 90f7543 commit 3acad8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/compiler-vapor/src/generators/expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ export function genExpression(

if (i === ids.length - 1 && end < content.length) {
const rest = content.slice(end)
// merge member expression into the last identifier's fragment
const last = frag[frag.length - 1]
if (hasMemberExpression && isArray(last) && last[3]) {
if (hasMemberExpression && isArray(last)) {
// merge rest content into the last identifier's generated name
last[0] += rest
} else {
push([rest, NewlineType.Unknown])
Expand Down

0 comments on commit 3acad8d

Please sign in to comment.