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 37599b9 commit 98c3c54Copy full SHA for 98c3c54
packages/svelte2tsx/src/htmlxtojsx_v2/nodes/IfElseBlock.ts
@@ -8,7 +8,7 @@ import { withTrailingPropertyAccess } from '../utils/node-utils';
8
export function handleIf(str: MagicString, ifBlock: Node): void {
9
if (ifBlock.elseif) {
10
// {:else if expr} --> } else if(expr) {
11
- const start = str.original.lastIndexOf('{:', ifBlock.expression.start);
+ const start = str.original.lastIndexOf('{', ifBlock.expression.start);
12
str.overwrite(start, ifBlock.expression.start, '} else if (');
13
} else {
14
// {#if expr} --> if (expr){
0 commit comments