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.
TransitionDirective
1 parent 683ac71 commit 45755eaCopy full SHA for 45755ea
packages/svelte/src/compiler/print/index.js
@@ -455,7 +455,16 @@ const visitors = {
455
},
456
457
TransitionDirective(node, context) {
458
- // TODO
+ const directive = node.intro && node.outro ? 'transition' : node.intro ? 'in' : 'out';
459
+ context.write(`${directive}:${node.name}`);
460
+ for (const modifier of node.modifiers) {
461
+ context.write(`|${modifier}`);
462
+ }
463
+ if (node.expression !== null) {
464
+ context.write('={');
465
+ context.visit(node.expression);
466
+ context.write('}');
467
468
469
470
TypeSelector(node, context) {
0 commit comments