Skip to content

Can we use this in the browser to compile and run ts? #18

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

Open
quantuminformation opened this issue Mar 3, 2018 · 2 comments
Open

Can we use this in the browser to compile and run ts? #18

quantuminformation opened this issue Mar 3, 2018 · 2 comments

Comments

@quantuminformation
Copy link

quantuminformation commented Mar 3, 2018

No description provided.

@quantuminformation quantuminformation changed the title Can we use this in the browser to compile and run js? Can we use this in the browser to compile and run ts? Mar 3, 2018
@svallory
Copy link
Member

Never tried it actually, but I think it will work. It hasn't been maintained for a long time though

@IlijazM
Copy link

IlijazM commented Dec 31, 2020

Yes sure but the real question is why should you do this? Let's say you only serve the typescript files and a typescript compiler, that would mean that whenever someone visits your website they first have to run the typescript compiler in order to execute javascript code. This is just inefficient. There are websites, however, that provide an online typescript sandbox (e.g. https://www.typescriptlang.org/play). This could be a use case for a typescript compiler that gets executed in a browser.

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

3 participants