You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
How important is this feature to you?
zero to low priority, mostly cosmetic. browsers ignore extra attributes like
<script lang="ts">
Is your feature request related to a problem? Please describe.
currently, preprocessors can not change tag attributes
for example
can only be transformed to
but not to
because preprocessors can only read attributes, but not change them
Describe the solution you'd like
allow preprocessors to to modify attributes
by returning the new attributes in
result.attributes
for example, the typescript preprocessor could do
Describe alternatives you've considered
do nothing, and let browsers ignore extra attributes
related code
svelte/src/compiler/preprocess/index.ts
Lines 274 to 285 in 32775a6
The text was updated successfully, but these errors were encountered: