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

The compiler for ReScript.

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

Getting the following error while installing `"rescript": "^9.1.4"` Full log: https://pastebin.com/w9LzugHp Dependencies: ``` "dependencies": { "@apollo/client": "^3.6.6", "@datadog/browser-rum": "^4.19.1", "@date-io/core": "^1.3.6", "@date-io/moment": "1.x", "@react-google-maps/api": "^2.2.0", "@reasonml-community/graphql-ppx": "^1.2.3", "@rescript/std": "^9.1.3", "animate.css":...

Given this definition: ```rescript type t = { mutable foo?: int, } let x = {foo: 42} ``` I would expect both these ways of updating the field to work...

This simple union type (to represent the [IteratorResult type](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_iterator_protocol)) miscompiles: ```rescript @tag("done") type iteratorResult

https://rescript-lang.org/try?version=v10.1.2&code=ALBWGcA8GEHsDsBmBLA5gCgN4DcCmAncZBALgAIBmAXwEoAoOgW1gBMBXAG1zIEklYAguDIBeMpjpkywZuy7oARMADGAQ3wdVAekQdY+VQprT8uVcoAuAOmWxGABwS54FyWVyQLBeKo5lGqgDWuOTowKrgihYAnva4RmQAfjFxAPrk4Bb4yPCoxiIAfGQASmaWVrhcjM4WomQKfIiwCnRUTKyc3I2wALKquVwsdRJSMh3ySmoa2rr6hsbApubWtg5OLm4eXvg+fgHBoYmpKSFkmdm5+UWlyxVVNXUN-C1tdFy1lXUAPN19A7hDY6xXAiBRNZpkLQFN64D4cABM326QjIJ1SoPBCkh0KAA Related to: https://github.com/rescript-lang/rescript-compiler/issues/5908 And after the https://github.com/rescript-lang/rescript-compiler/pull/6354 is released, it might become a bigger problem. Now, we need to migrate to JSX V4 before we can start using ReScript...

I was playing around and I realized that, with the current approach to compile inline modules, we produce JS code that cannot be tree-shaked (at least using esbuild 0.18.13). ```rescript...

Exporting a function like: ```rescript @genType let basicEvalNode = ( ~onError: exn => unit, ) => { ``` Outputs the following TypeScript: ```typescript export const basicEvalNode: (_1: { readonly onError:...

I suspect this is likely to show up quite a bit (and maybe there's a way to shim it in user land?), so just bringing it up. While using pgtyped-rescript,...

Adding attribute because the internal representation of `arr[idx]` is `Array.get` and we don't have a way to distinguish both when issuing the token on the LSP. See https://github.com/rescript-lang/rescript-vscode/issues/801

This allows you to use record spreads in inline records. It's mostly for consistency, record spreads are less useful in inline records because you can't get a hold of the...