- ReasonML Quick Start Guide
- Raphael Rafatpanah Bruno Joseph D'mello
- 79字
- 2021-07-02 12:34:16
Installing BuckleScript
BuckleScript is a compiler that takes the OCaml AST and emits clean, readable, and performant JavaScript. It can be installed via npm, as follows:
npm install -g bs-platform
Installing bs-platform provides a binary called bsb, which is BuckleScript's build system.
In the future, the Reason toolchain will make it much easier to target native platforms as well as JavaScript. Currently, Reason compiles to native by using a fork of bsb, called bsb-native .