ReScript (bs-platform) is a strongly typed language that compiles to efficient, readable JavaScript. This package provides the compiler, standard library (Stdlib, Belt), and build system (ninja-based). Current latest stable version is 12.2.0 (as of this entry), with v13 in alpha. Release cadence is roughly quarterly, with breaking changes in major versions. Key differentiators vs TypeScript: sound type system, no type errors at runtime, fast compilation, and seamless interop with JavaScript via special syntax and attributes. The package is primarily for tooling and compiler development; most users should use the `rescript` npm package or ReScript via the VSCode extension.
npm install bs-platformNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a minimal ReScript project, compile a simple script, and run the generated JavaScript.
Run 'npm install rescript' and update your imports and build config to use the 'rescript' package.
Rename 'bsconfig.json' to 'rescript.json' and adjust the schema if needed.
Use 'npx rescript build' instead of 'npx rescript-legacy build'. Ensure your rescript.json is configured for the modern build system.
Remove the radix argument from calls to Int.fromString and Float.fromString. Use parseInt for radix-based parsing.
Replace '%external' with the appropriate ReScript binding syntax, e.g., using '@external' decorator.
Use 'npx rescript build' instead of 'bsc' or 'bsb'. Update your rescript.json to the new schema.
Update to ReScript v12.2.0 or later. If you must stay on an older version, avoid matching empty dict/record patterns.
Install the 'rescript' package and use 'require('rescript')' or adjust your build pipeline to use the 'rescript' package instead.Update to v12.0.1 or later where this is fixed. If you cannot update, refactor large unboxed variants.
Update your code to handle Ordering.t (float) or use the previous version if you depend on int.
No dependency data recorded yet.