rescript-compiler
rescript-compiler copied to clipboard
The compiler for ReScript.
This proposal introduces new syntax and semantics for improving for loops. ## Motivation Currently, ReScript has very limited for loops support. In particular, the lack of support for iterators makes...
- BigInt - Error
The scope of `var` is per-function, requiring a transformation for closures inside loops when capturing loop variables. This PR turns off the transformation. This PR should go after https://github.com/rescript-lang/rescript-compiler/pull/6102
Fixes https://github.com/rescript-lang/rescript-compiler/issues/856 - Need to check that no cases are missed where this could introduce regressions even if the tests appear to be passing - This will generate a huge...
Currently the compiler treats modules using JSX are not pure modules. In common use cases, like in React, the JSX runtime can be treated as pure, and safe DCE can...
``` FAILED: src/components/inventory/productInfo/InventoryProductInfoHighlights.cmj Fatal error: exception File "jscomp/ext/ext_list.ml", line 713, characters 55-61: Assertion failed FAILED: cannot make progress due to previous errors. ``` ``` external toCurried: (. (. 'a) =>...
It highlights code one symbol before it should be highlighed. So in the example above it highlighted `{dat` instead of `data`. So when I click on the link I get...
I think this only fails on the playground, and we just fixed the same issue over at https://github.com/melange-re/melange/pull/852 [Playground link](https://rescript-lang.org/try?version=v10.1.2&code=KYDwLsBOB2CGA2ACMiBciAiB7AtgOgBMsBjAVx2GhQF5EAiOgKEfmBREVrCA)
We're starting a new project that will use tons of animation and decided Rescript is a strong candidate - we love it's support for React. During our testing phase we...
Hi. I was trying to update the code of Tablecloth to Rescript 11 and faced quite a strange regression. Here is a simple repro: Demo.res ``` type t let map...