svelte
svelte copied to clipboard
[fix] Support exclusively special characters in component filenames
Fixes #7143.
This PR supports special characters like @, &, ~ by not removing the leading/trailing _ in a filename if it's the only character in the function get_name_from_filename.
It seems potentially problematic that we could have two files end up with the same component names?
@benmccann Should we add some kind of increasing number sequence in such cases?
@baseballyama is attempting to deploy a commit to the Svelte Team on Vercel.
A member of the Team first needs to authorize it.