rescript-compiler
rescript-compiler copied to clipboard
The compiler for ReScript.
I'm surprised no one suggested this yet (the only other relevant issue I could find was #2903). Now that [all major browsers and runtimes support it](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#Browser_compatibility) (ignoring IE which is...
```ml Some (Done _) ``` -> ```rescript Some(Done(_)) ```
The title is what I *think* is going on. (To really be sure, I'd have to uninstall node and reinstall it as an apt package, but I'm afraid of doing...
**Rescript Version**: 9.1.3 When a file refers to the namespace of the project it is in certain conditions, it will cause an error on the first compile (or after `rescript...
seems powershell can not recognize. need check cmd.exe
[See playground Link](https://rescript-lang.org/try?code=LYewJgrgNgpgBAORASQHYBcBmcC8cDeAUHHAAJgwAOATjAMYCG6MYxc6AnpfN9QM4hUuAgEswALjgiMAGjioGwGJL7pq0gOYBfQm3JVajZqxKx0cOhFUhgAERAQARrGFCcAPnlwAVHABMuiT6NPRMLAAUAEQAqnzwAPLoABYw1ACy4NAwAHSW1sAAKuqULtKqMAxgkQCUbGYWVug2RSIl8HhunkK+AMyBZBQhRhExcXCJKemZpajllTVsoJAuaRwZy+0EbCSc3OxsOjqES1lwAOoiyWhYkkRBg4ZhJuxcPKkCbqISUrLyispwVTqVDafrBR7GOowcx5Jp2BzOAHScweH7oMEPULGKKxBLJVLrLK5RrNYozOZVWqmaENfItNqSZG4TzIjEGLEjXHjfFTDY-CkLEgnFZraYAu4kF57dEkQ7CCW7N78QTysSM34KJQqNSaHTUmEk+FOFwdZleXwBfW0uH0k1eVHdOB9RZiuCrQl2iU7V77WWEI4AegD50uSQc5muqUwDDoMDkgigHDgmOGYClMD4cAA7iBqABrQiKuAMYRIa6YbK8D5wIPnXN5viEeqOUsoDAV2E2ezGmDhPzVGvB+wZ+Qgcw5-NNml0Vvl4l0sm9noD2vDzOoMfZ+uFn1pvBl9vZd1i7LmWtneuNwjn0NwSPUaOxuQpp7pvhyTAQVB0dAiQSZhhUDTYURwnAsi02C4rkPKtBCncxsDwKCkjnTsjURPtanqDRhGQ1DDVtJdaiLJJcNDOdjw2U9CCAA) `@deprecated` does only seem to work for types in `.res` files. Only in an interface it also works for functions and modules. This example suggests otherwise: https://rescript-lang.org/syntax-lookup#expression-deprecated-decorator...
I'm aware that `bsc` can be used for the most part exactly like `ocamlc`, but I am not clear if there are some differences. Could you please enumerate how `bsc`...
This code will return false: ``` let test = switch `ü` { | `ü` => true | _ => false } ``` Compiled JS output: ``` var test = "ü"...
As per Discord discussion, to avoid accidental production builds with `-bs-g` applied via config, apply it via environment variable instead.
build this code: ```reason external createSandbox : unit => Js.t {..} = "create" [@@bs.scope "sandbox"] [@@bs.module "sinon"]; ``` expect to genearte: ```js import * as Sinon from "../../node_modules/sinon"; ``` but...