When I build my Sveltia CMS app with Svelte 5 RC, I see a bunch of warnings about unused exports, e.g.
[vite-plugin-svelte] src/lib/components/contents/details/widgets/string/string-editor.svelte:15:13 Component has unused export property 'locale'. If it is for external reference only, please consider using export const locale
I’ve noticed in #11833 that at some point svelte-ignore unused-export-let has become svelte-ignore export_let_unused. I can confirm that changing unused-export-let to export_let_unused can silence the warnings.
If it’s an intentional change, please mention it in the breaking changes document. Otherwise, please restore the support for unused-export-let and possibly other warning codes.
Additional context: These unused exports are used along with svelte-ignore unused-export-let to suppress browser console warnings like <String_editor> was created with unknown prop 'locale'. These components are loaded with <svelte:component>, and not all the components use all the props. It may no longer be necessary after migrating to the Svelte 5 $props rune (I haven’t tested it yet.) (Edit: it seems so, according to #4652)
Describe the bug
When I build my Sveltia CMS app with Svelte 5 RC, I see a bunch of warnings about unused exports, e.g.
Here’s the relevant code.
I’ve noticed in #11833 that at some point
svelte-ignore unused-export-let
has becomesvelte-ignore export_let_unused
. I can confirm that changingunused-export-let
toexport_let_unused
can silence the warnings.If it’s an intentional change, please mention it in the breaking changes document. Otherwise, please restore the support for
unused-export-let
and possibly other warning codes.Additional context: These unused exports are used along with
svelte-ignore unused-export-let
to suppress browser console warnings like<String_editor> was created with unknown prop 'locale'
. These components are loaded with<svelte:component>
, and not all the components use all the props. It may no longer be necessary after migrating to the Svelte 5$props
rune (I haven’t tested it yet.) (Edit: it seems so, according to #4652)Reproduction
pnpm install svelte@next -D && pnpm build
Logs
No response
System Info
Severity
annoyance