Skip to content

Svelte 5: legacy mode wrong export_let_unused for svelte:component #13148

@paoloricciuti

Description

@paoloricciuti

Describe the bug

If you have something like this

<script>
	export let Component;
</script>

<svelte:component this={Component} />

the Component prop is marked as unused.

Reproduction

REPL

Logs

-

System Info

-

Severity

annoyance

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions