rescript-compiler
rescript-compiler copied to clipboard
The compiler for ReScript.
[Repository with test case](https://github.com/Minnozz/rescript-reproduce-issue/tree/pinned-dependencies-issue) How to reproduce: ``` $ git clone --branch pinned-dependency-issue https://github.com/Minnozz/rescript-reproduce-issue.git $ cd rescript-reproduce-issue $ yarn $ cd main-project && yarn rescript build -w ``` In other...
Note ES6's default import can not be faithfully translated into commonjs, so if you design an API, please don't use default exports/imports. This issue is to help reduce the main...
``` $ rescript format -all events.js:292 throw er; // Unhandled 'error' event ^ Error: read ENOTCONN at tryReadStart (net.js:574:20) at Socket._read (net.js:585:5) at Socket.Readable.read (_stream_readable.js:481:10) at Socket.read (net.js:625:39) at new...
They are called fields in docs. I think we should call them fields in errors too. for example. This error ``` This expression has type user, it has no method...
One of the first things in the [manual](https://rescript-lang.org/docs/manual/latest/installation): > Installation > > Prerequisite: NPM, which comes with NodeJS. Yarn also works. Node itself is also a requirement. Some parts of...
This is a trivial subcommand, it is better to port it in JS . It is currently implemented in native ml code
```res module Foo = { type navigationApi = { one: [#1 | rescript-lang/syntax#2], two: int, } let apiImpl: navigationApi = { one: rescript-lang/syntax#1, two: 2} } module type Foo =...
see [util.inspect.custom](https://nodejs.org/api/util.html#util_util_inspect_custom) https://nodejs.org/api/util.html#util_custom_inspection_functions_on_objects
instead of print it as ```js a ^ (b ^ c) ``` print it as ```js a ^ b ^ c ```
This is helpful for NextJS. We can now have the filename `[slug].res` however that file can have multiple instances when using NextJS. Because the module is not accessible from the...