A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://rescript-lang.org/docs/manual/v10.0.0/migrate-from-bucklescript-reason below:

Migrate to ReScript Syntax | ReScript Language Manual

Migrate from BuckleScript/Reason

ReScript is a rebranding and cleanup of BuckleScript (since v8.2.0) & Reason (v3.6) that enables us to ship a tighter compile-to-JS stack with more coherent documentation & tools. If you're an existing user of BuckleScript & Reason, here's the gist:

There are lots of exciting improvements in the new syntax (features, speed, error messages, etc.). The upgrade is trivial, backward-compatible and can be done on a per-file basis:

npm install rescript@9 # Also works with .rei / .ml / .mli / etc npx rescript convert src/MyFile.re

Enjoy the improved experience!

Upgrade Individual Folders

This is useful for per-directory conversions:

CONSOLE

# *.rei, *.ml, *.mli,.... for f in your-folder/**/*.re; do; node_modules/.bin/rescript convert $f && rm $f; done;

Upgrade an Entire Codebase

In case you are confident in converting your codebase in one step, use the following:

npx rescript convert -all


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4