Skip to main content
App.svelte
Component.svelte
Component2.svelte
<script>
import Component from "./Component.svelte";
import Component2 from "./Component2.svelte";
</script>

<Component let:a={b}>
<h1>{b}</h1>
</Component>

<Component2 let:c>
<h1>{c}</h1>
</Component2>

result = svelte.compile(source, {
generate:
css:
});

		
			
  • {
    • css: undefined
    • {
      • type: "Script"
      • start: 0
      • end: 110
      • context: "default"
      }
    • module: undefined
    }
The AST is not public API and may change at any point in time