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
While using Sublime Text 4143 on macOS Ventura 13.4, TypeScript syntax highlighting seems to be broken.
After adding lang="ts", highlighting seems to work.
However, using attributes to detect TypeScript seems to break Astro's script bundling, as mentioned here
NOTE
Astro’s default bundling behavior will be disabled in some situations. In particular, adding type="module" or any attribute other than src to a <script> tag will cause Astro to treat the tag as if it had an is:inline directive. The same will be true when the script is written in a JSX expression.
This causes the script to be bundled as JavaScript, not as TypeScript, so it is never bundled.
I'm not sure how this could be fixed, but assuming that all scripts are TypeScript may be a potential solution, as TypeScript is a JavaScript superset, so could you look into that?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi,
While using Sublime Text 4143 on macOS Ventura 13.4, TypeScript syntax highlighting seems to be broken.

After adding

lang="ts"
, highlighting seems to work.However, using attributes to detect TypeScript seems to break Astro's script bundling, as mentioned here
This causes the script to be bundled as JavaScript, not as TypeScript, so it is never bundled.
I'm not sure how this could be fixed, but assuming that all scripts are TypeScript may be a potential solution, as TypeScript is a JavaScript superset, so could you look into that?
Thanks in advance!
The text was updated successfully, but these errors were encountered: