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

Support typescript with TSC compiler #74

Closed
boltex opened this issue Dec 20, 2023 · 1 comment
Closed

Support typescript with TSC compiler #74

boltex opened this issue Dec 20, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@boltex
Copy link
Owner

boltex commented Dec 20, 2023

If the detected language of a script initiated by Ctrl+B is 'typescipt', consider the code to be a typescript source instead of javascript and run it through TSC compiler before giving it to the regular leojs script runner.

see https://stackoverflow.com/questions/23075748/how-to-compile-typescript-code-in-the-browser
see microsoft/TypeScript#50758

@boltex boltex added the enhancement New feature or request label Dec 20, 2023
@boltex boltex self-assigned this Dec 20, 2023
@boltex
Copy link
Owner Author

boltex commented Jan 3, 2024

See this for a working example
https://jsfiddle.net/mp4ev9t5/1/

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

No branches or pull requests

1 participant