alephjs / aleph.js

The Full-stack Framework in Deno.
https://alephjs.org
MIT License
5.26k stars 167 forks source link

ReScript support #159

Open Zizico2 opened 3 years ago

Zizico2 commented 3 years ago

Are there any plans to support any other languages like ReScript? Could we have ReScript as a an officially supported language? React bindings already exist and Aleph bindings shouldn't be too hard to muster up.

shadowtime2000 commented 3 years ago

I have never used ReScript so idk most of the stuff.

But it seems like ReScript requires an NPM package?

This would be a very large feature and would probably require Deno support from ReScript.

Zizico2 commented 3 years ago

Ah, that is true. I completely disregarded that we don't use npm here. I'll bring this fight to ReScript as well. Using ReScript is such a breath of fresh air. I've been avoiding JavaScript for as long as I've been developing for the web. TypeScript is good but it aims to be a superset of JavaScript which holds it back imo. I'm using nextjs+rescript for the website I am currently developing.

This could remain as a long term goal if ReScript eventually gets Deno support.

shadowtime2000 commented 3 years ago

@Zizico2 Once ReScript gets Deno support it would probably be simple to add support, we just need to write a plugin for our loader system then.

I have no idea how ReScript works but I think it is built on OCaml which I think is a native language so yeah, it may take more then creating an esm.sh url to use it in Deno.

If you create an issue there or something for Deno support it would be great if you could put the link here for reference.