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

Shorthand {src} attribute on <script> tag causes Typescript error #604

Closed oodavid closed 2 months ago

oodavid commented 1 year ago

Describe the bug

Using <script {src} /> causes a Typescript error. The string type is interpreted as string | null | undefined. To fix, we can use ` Githubissues.

  • Githubissues is a development platform for aggregating issues.