fix: add typescript as valid lang tag#5105
Conversation
lang="typescript" is valid for Svelte
|
Extra context: Svelte (or Although |
|
Marked as draft so we can discuss first if this is really beneficial in the long run to have to variants to write this. @dominikg rightfully pointed out that it may be better to force people into one style of signaling that TS is used in the script block. |
|
Closing as we came to agreement it would be better to not add extra stuff and instead standardize around |
Description
Treat lang="typescript" the same as lang="ts" as the former is valid for Svelte to signal that the script tag contains TS
Additional context
If benefitial for the greater ecosystem, I'm okay with this PR getting rejected as "won't do" and instead persuade people into doing
lang="ts". Right now everyone who transitions to Vite will need to adhere to it, so we could use that as a way to force people to only writelang="ts"from now on.What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).