sveltejs / svelte-preprocess

A ✨ magical ✨ Svelte preprocessor with sensible defaults and support for: PostCSS, SCSS, Less, Stylus, Coffeescript, TypeScript, Pug and much more.
MIT License
1.73k stars 147 forks source link

Typescript in component markup #568

Closed l1bbcsg closed 1 year ago

l1bbcsg commented 1 year ago

Docs note the following:

Using TypeScript inside a component's markup is currently not supported. See #318 for development updates to this.

And there's also issue #378 that was closed in favor of the same #318

318 however is closed as completed via #392, so its original issue resolved, which was not really about transpiling code found with component markup section.

What is the current status of the issue of using TS in templates?

As far as I understand it's still not supported and for this reason it's also not possible to downgrade ECMA versions for bits of code in HTML templates, thus making svelte-preprocess not production-friendly.

dummdidumm commented 1 year ago

Closing as duplicate of #525

l1bbcsg commented 1 year ago

The docs should be updated at least. Currently it leads to a tangled mesh of issues with no clear status.