Add TypeScript support to the JavaScript compiler of Code Components
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3562289. -->
Reported by: [balintbrews](https://www.drupal.org/user/613760)
Related to !401
>>>
<h3>Overview</h3>
<p>The JavaScript compiler used by both the in-browser code editor and the CLI tool can only handle JavaScript syntax.</p>
<h3>Proposed resolution</h3>
<p>Add support for TypeScript syntax using <a href="https://swc.rs/docs/configuration/compilation#typescript">SWC's TypeScript parser option</a>. Note that this will not mean actual type checking, it will simply enable parsing the syntax, which feels like a good first step. Type-checking can be added to codebases managed with the CLI tool.</p>
issue