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 support #76

Closed
4 tasks
andrieshiemstra opened this issue May 24, 2023 · 7 comments
Closed
4 tasks

Typescript support #76

andrieshiemstra opened this issue May 24, 2023 · 7 comments

Comments

@andrieshiemstra
Copy link
Member

andrieshiemstra commented May 24, 2023

I'm thinking about adding typescript support directly in quickjs_runtime instead of a separate crate, it would be an optional feature.

Things we could do:

  • native support for typescript
  • optional caching of transpiled/compiled code (and optional disk backed)
  • parse .map files and return correct stacktraces on errors
  • serverside React support out of the box

i'd like to hear your thoughts on this

@xHyroM
Copy link

xHyroM commented Jun 1, 2023

you can use SWC

@andrieshiemstra
Copy link
Member Author

andrieshiemstra commented Jun 1, 2023

@xHyroM

you can use SWC

Hi thanks for response!
yes I know, consider this my proof of concept: https://github.com/HiRoFa/typescript_utils

The question is: do I include this in the quickjs_runtime codebase or leave it in it's own library...

@xHyroM
Copy link

xHyroM commented Jun 1, 2023

i should move it here because typescript support is really important, annoying build tools heh

@andrieshiemstra
Copy link
Member Author

i should move it here because typescript support is really important, annoying build tools heh

Thank you for your feedback!

@andrieshiemstra
Copy link
Member Author

first version with typescript built in: 3ed319f

@andrieshiemstra
Copy link
Member Author

avail in 0.11.0

@xHyroM
Copy link

xHyroM commented Jun 14, 2023

cool 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants