rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

The compiler for ReScript.

Results 427 rescript-compiler issues
Sort by recently updated
recently updated
newest added

In case the rescript.json or the compiler version changes, rewatch should automatically clean before doing a build. (Also, if the project was compiled with bsb before, do a clean before...

Example: ```rescript type myVariant = AAAAA | BBBBB module MyComponent = { @react.component let make = (~x: myVariant) => (x :> string)->React.string }

editor

Since #7063 and #7068, the infamous `ninja.js` is gone, and runtime/stdlib and tests are built with the standard ReScript build tooling (`rescript.json`, `rescript` wrapper script, `bsb`/`bsb_helper`/`ninja`). In order to eventually...

enhancement
cleanup

I'm trying to model `blobParts` of https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob#blobparts for the new WebAPI bindings. ```res @unboxed type blobPart = | String(string) | Blob(blob) | ArrayBuffer(ArrayBuffer.t) | TypedArray(TypedArray.t) ``` However, I cannot use...

https://rescript-lang.org/try?version=v11.1.4&module=esmodule&code=C4TwDgpgBMULxQN4H1lgE4HtidQLigGdh0BLAOwHMBfAKFoClCA6AG00oAoU0sd8oAIgBmmTIOoBKWkA It would be nice for compiler to prevent records creation with the `__proto__` field name, since it doesn't work in JavaScript.

enhancement

Proof of concept to find a cursor inside broken code. The idea is to have a second pass of the syntax tree after parsing. There we can update certain location,...

I've just tried out tagged template, and it would be great if they stayed as tagged templates instead of turning into arrays like here: https://rescript-lang.org/try?version=v12.0.0-alpha.7&module=esmodule&code=KYDwLsBOB2CGA2ACAtgTwCqwOYDECu0AxmAJYD20iAXIgBSySSyoA8AzmJCdFgHwA0iBk1YByAA4NYyXgEpEAXl6JRZPGHHrFiAEQA3BDoBQRgFJsAdPDJZaaTLgLFy0AAYAzMmVeyjQA I use the `postgres` package...

I used the existing `Token.Bar`, it looks like there's a conflict with the `|` used in pattern matching, so I'm looking into it.

https://rescript-lang.org/try?version=v12.0.0-alpha.9&module=esmodule&code=C4TwDgpgBAhlC8UDeAzA9mg-ALigVwDsBLYAXwChyAbCYKdNBWBAPnKigGcB3EgYwAWzJOygAfZA1wB9UqygBGUROnyATKIpA