rescript-compiler
rescript-compiler copied to clipboard
The compiler for ReScript.
I have a module which includes externals with attributes such as `bs.send` and `bs.module`: ``` type t; [@bs.scope "thing"] [@bs.module "jsmodule"] external fromJSON: Js.Dict.t('a) => t = "fromJSON"; [@bs.send] external...
As of rescript 9.1.4 the `rescript init` command is not listed in help, which can be a bit confusing for beginners.
I explored the various ASTs on [astexplorer.net](https://astexplorer.net) and saw many possibilities. It would be fantastic to use pattern matching when dealing with trees parsed by parser libraries But in my...
generator in es6 is a pretty useful feature, it servers something like `BatEnum.t` in ocaml
Our prebuilt ninja may not work on some exotic OSes, in this case `ninja` will be built from source, it has a dependency on Python which is unneeded. Since ReScript...
Currently, it's not possible to emit a binary AST or accept a binary AST using the `rescript format` command line tool. I am working on a more tightly integrated version...
A little context - npm still hoists all packages to the root package's node_modules directory. Yarn used to do the same. This has always been a deduplication optimization, and never...
The current syntax repo depends on a fix version of ocaml compiler API parsetree/4.06, so you can not really develop that repo without pinning to 4.06 compiler API. Given that...
To build changes with pinned dependencies I need to run `rescript build -with-deps`. I thought that with pinned dependencies a `rescript build` would also build changes in the pinned dependencies...
This is a convention in Remix, see https://remix.run/docs/en/v1/api/conventions#dynamic-route-parameters