OCaml -> JS compiler.
This project is a fork of the ReScript compiler with a focus on compatibility with the wider OCaml ecosystem. A small write-up with more details on the motivation behind this project can be found in this blog post.
This project is currently unreleased. Currently, the most straightforward way to use it is via Esy.
- Make sure you have Esy installed (
npm install -g esy
should cover most workflows) - Use an
esy.json
file like the following:
{
"dependencies": {
"bs-platform": "*"
},
"resolutions": {
"bs-platform": "anmonteiro/bucklescript#2d3d464", <- or grab the latest commit in this repo
"ocaml": "anmonteiro/ocaml#75f22c8"
},
"esy": {
"buildsInSource": "unsafe",
"build": [
"ln -sfn #{bs-platform.install} node_modules/bs-platform"
]
},
"installConfig": {
"pnp": false
}
}
- Reach out on the ReasonML Discord if you can't figure it out!
See CONTRIBUTING.md.
See Credits.md.
See COPYING and COPYING.LESSER
The ocaml
directory contains the official OCaml compiler (version 4.06.1).
Refer to its copyright and license notices for information about its licensing.
The vendor/ninja.tar.gz
contains the vendored ninja.
Refer to its copyright and license notices for information about its licensing.
See Credits for more details.