[IMP] compiler: remove useless ; in compiled output

This commit is contained in:
Géry Debongnie
2022-06-08 12:33:58 +02:00
committed by Sam Degueldre
parent 83d4471048
commit 51538c2fea
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1268,7 +1268,7 @@ export class CodeGenerator {
if (this.target.loopLevel || !this.hasSafeContext) {
ctxStr = generateId("ctx");
this.helpers.add("capture");
this.define(ctxStr, `capture(ctx);`);
this.define(ctxStr, `capture(ctx)`);
}
const target = compileExpr(ast.target);
const blockString = `component(Portal, {target: ${target},slots: {'default': {__render: ${name}, __ctx: ${ctxStr}}}}, key + \`${key}\`, node, ctx)`;