Document the official MIME type for .svelte files
#17838
MichaelDeBoey
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m working on improving MIME type support for modern web framework source files across tooling, servers, and content-type databases.
Currently, there does not appear to be an officially documented MIME type for
.sveltefiles.Some tools/frameworks use conventions such as
text/x-<framework>, but there is no authoritative reference from the Svelte project itself.This create ambiguity for other projects to rely on a consistent mapping.
Having an official statement would help:
Would the Svelte project be open to document an official recommendation for the MIME type of
.sveltefiles?This does not necessarily require IANA registration though.
A short note in the docs would already provide a reliable reference for downstream projects I think.
If another MIME type from
text/x-svelte(liketext/plain,text/html,text/html+svelte, ...) is preferred, documenting that choice would be equally helpful.Thank you for your work and for considering this!
CC/ @Rich-Harris
Beta Was this translation helpful? Give feedback.
All reactions