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

Specifying default <script> language #631

Closed JorensM closed 3 weeks ago

JorensM commented 2 months ago

Is your feature request related to a problem? Please describe. Problem is that I have to type out <script lang="ts"> for each component instead of just <script>, even though my project consists of exclusively TypeScript files.

Describe the solution you'd like I believe this was a feature in earlier versions, but I'd like a configuration option that would allow you to specify the default language for <script> tags so you don't have to explicitly specify it each time.

How important is this feature to you? Not too important, just a minor inconvenience.

dummdidumm commented 3 weeks ago

We did this a long time ago but it turned out to be a mistake:

Therefore closing.