-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Online repl #50
Comments
It would be really hard as swc depends on rustc-ap crates.
|
Unfortunate that compiling to Webassembly seems difficult. More search terms: Playground |
Is it possible to do this now? I think so, right? I am using swc in a playground for dprint. |
@dsherret It's possible. But I'm not sure about the roadmap. I was too busy due to corona 19. And now, I have lots of bugs to fix. |
What's the status on this? I'd like to see swc be able to be compiled to wasm. My usecase is that I've got a project that makes use of typescript that runs on Cloudflare Workers, and often running the typescript compiler on imports takes longer than 50ms, which is hitting the limits of a cloudflare worker. To get under the limit without using regex hacks, I'd like to use rust and swc to compile to wasm and then run that in a cloudflare worker. |
It's absolutely doable. I just do not have enough time. |
Now that @swc/wasm-web is successfully published, it should be duly possible to make an online repl. I'm happy to work on this. Can I do this? |
@9oelM Of course. Thanks a lot! |
Alright I find some problems with that while trying to bootstrap the project with |
https://9oelm.github.io/swc-wasm-demo/ how should I move it into this repo? Also, what else should I add more to this? |
Wow, cool! I think it would be great if it's integrated with the website, just like babel's one. So for now, uploading it to https://swc.rs/repl would be enough. |
Yeah. I'm not a designer so perhaps somebody else could help later on the design 😂 Okay. I will do that soon. I'm recently busy with work stuffs, so I will do it in a few weeks. Thank you! FYI, this demo project already uses React :) |
@9oelM Sounds great. I hope I can do some design work... |
Are we ready to make swc available on the web? |
I think so, swc has |
Sorry i've been busy last few months. I will start working on it (basically porting what we have already on https://9oelm.github.io/swc-wasm-demo/). Btw, @kdy1 do you want it to be included in https://github.com/swc-project/website or make a separate repl website (although we discussed it few months ago)? I think it makes sense to include it together inside https://github.com/swc-project/website |
I also think website is a proper repository to store repl. |
Ok. then I will make one more page in the Docusaurus website. |
Thanks a lot! |
@kdy1 i think we can close this and open other issues for further improvements |
Yes, you are right. |
Thanks! |
Respectful! |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
ratel-rust have one, and it looks great
The text was updated successfully, but these errors were encountered: