Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript parsing support #161

Closed
thescientist13 opened this issue Jun 15, 2024 · 0 comments · Fixed by #162
Closed

TypeScript parsing support #161

thescientist13 opened this issue Jun 15, 2024 · 0 comments · Fixed by #162
Assignees
Labels
0.14.0 documentation Improvements or additions to documentation feature New feature or request
Milestone

Comments

@thescientist13
Copy link
Member

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:

  • .js
  • .jsx
  • .ts
  • .tsx (nice to have)

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
@thescientist13 thescientist13 added documentation Improvements or additions to documentation feature New feature or request labels Jun 15, 2024
@thescientist13 thescientist13 added this to the 1.0 milestone Jun 15, 2024
@thescientist13 thescientist13 self-assigned this Jun 15, 2024
@thescientist13 thescientist13 changed the title TypeScript support TypeScript parsing support Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.14.0 documentation Improvements or additions to documentation feature New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

1 participant