We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 888ec8f commit 783a7daCopy full SHA for 783a7da
packages/compiler-sfc/src/compileScript.ts
@@ -1208,7 +1208,9 @@ export function compileScript(
1208
const removed = new Set()
1209
1210
function getLastIndex(i: number) {
1211
+ console.log(i)
1212
while (removed.has(--i)) {}
1213
1214
return i
1215
}
1216
@@ -1230,7 +1232,7 @@ export function compileScript(
1230
1232
// last one, locate the end of the prev
1231
1233
start = node.declarations[getLastIndex(i)].end! + startOffset
1234
} else {
- // not last one, locate the start of the next
1235
+ // not the last one, locate the start of the next
1236
end = node.declarations[i + 1].start! + startOffset
1237
1238
s.remove(start, end)
0 commit comments