Skip to content

v0.10.2

Compare
Choose a tag to compare
@metonym metonym released this 29 Aug 19:19
· 174 commits to main since this release

Fixes

  • tolerate slot spread syntax (<slot {...props} />) when parsing Svelte components

Note: the parser will not attempt to infer the type of spread attributes. Add a JSDoc notation if spreading an object to a slot:

<script>
  /** @slot {{ a: number; }} */

  const props = {
    a: 4,
  };
</script>

<slot {...props} />