Skip to content

Commit 273e3d7

Browse files
committed
tests for L-nodes
1 parent b612430 commit 273e3d7

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

packages/svelte/src/compiler/print/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ const visitors = {
468468
},
469469

470470
LetDirective(node, context) {
471+
// TODO new lines
471472
context.write(`let:${node.name}`);
472473
if (
473474
node.expression !== null &&
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<FancyList {items} let:item={processed}>
2+
<div>{processed.text}</div>
3+
</FancyList>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<FancyList items={items} let:item={processed}><div>{processed.text}</div></FancyList>

0 commit comments

Comments
 (0)