ProjectEvergreen / wcc

Experimental native Web Components compiler.
https://merry-caramel-524e61.netlify.app
80 stars 6 forks source link

TypeScript parsing support #161

Closed thescientist13 closed 3 months ago

thescientist13 commented 3 months ago

Summary

As a stop gap until a proper generic solution can be achieved for #122 , it would be incredibly valuable to support TypeScript (but not necessarily the type checking part) so custom elements can be authored in TypeScript

Details

Ideally would like to support the full range of extensions:

Couple options are:

  1. acorn-typescript
  2. sucrase
  3. typescript (tsc) - less than ideal since we would end up bundling the entire CLI into any SSR use cases, but should work