rescript-lang / rescript

ReScript is a robustly typed language that compiles to efficient and human-readable JavaScript.
https://rescript-lang.org
Other
6.76k stars 453 forks source link

Deprecate `in-source` flag #7180

Open cometkim opened 20 hours ago

cometkim commented 20 hours ago

See https://github.com/rescript-lang/rescript/issues/6209#issuecomment-2506473698

Currently in-source is optional, and the compiler only does one mode.

However, they have their own use cases and are not interchangeable. In particular, with ESM semantics, a lib directory is still needed to serve without additional tools like NPM.

However, most people use in-source: true in the general case as we recommended it.

I think that both should be enabled. Users only have to choose whether to include it in the NPM package or the git repository.

cometkim commented 20 hours ago

Related #6210 and #6475