Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate <svelte:self>? #13219

Closed
brunnerh opened this issue Sep 12, 2024 · 2 comments · Fixed by #13333
Closed

Deprecate <svelte:self>? #13219

brunnerh opened this issue Sep 12, 2024 · 2 comments · Fixed by #13333
Milestone

Comments

@brunnerh
Copy link
Member

Describe the problem

<svelte:self> has typing issues and should not strictly be necessary since components can import themselves.

This being the case I would suggest removing it in the future unless there is a good reason not to (e.g. not all common build tools being able to handle such imports).

Describe the proposed solution

Deprecate <svelte:self> for 5.0, remove later.

Importance

nice to have

@paoloricciuti
Copy link
Member

I remember trying something similar and failing for some reason. Otherwise very in favor of deprecating

@ottomated
Copy link
Contributor

ottomated commented Sep 12, 2024

I've reached for svelte:self maybe a total of 3 times ever, so I like deprecating it in favor of self-referential imports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants