From 6ea88ed93c427d82c01f263552ce328dbea53fb8 Mon Sep 17 00:00:00 2001 From: Josh Vlk Date: Thu, 16 Apr 2026 06:15:02 -0400 Subject: [PATCH] docs: restore removed version markers in build config --- markdown-pages/blog/release-9-0.mdx | 2 +- markdown-pages/docs/manual/array-and-list.mdx | 2 ++ markdown-pages/docs/manual/build-configuration.mdx | 7 ++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/markdown-pages/blog/release-9-0.mdx b/markdown-pages/blog/release-9-0.mdx index 70c5a8ba6..b13d54359 100644 --- a/markdown-pages/blog/release-9-0.mdx +++ b/markdown-pages/blog/release-9-0.mdx @@ -34,7 +34,7 @@ Our compiler comes with a set of stdlib modules (such as `Belt`, `Pervasives`, e In previous versions, users couldn't ship their compiled JS code without defining a `package.json` dependency on `bs-platform`. Whenever a ReScript developer wanted to publish a package just for pure JS consumption / lean container deployment, they were required to use a bundler to bundle up their library / stdlib code, which made things way more complex and harder to understand. -To fix this problem, we introduced an `external-stdlib` configuration that allows specifying a pre-compiled stdlib npm package (`@rescript/std`). +To fix this problem, we introduced an `external-stdlib` configuration that allows specifying a pre-compiled stdlib npm package (`@rescript/std`). More details on how to use that feature can be found in our [External Stdlib](../docs/manual/build-external-stdlib.mdx) documentation. ### Less Bundle Bloat when Adding ReScript diff --git a/markdown-pages/docs/manual/array-and-list.mdx b/markdown-pages/docs/manual/array-and-list.mdx index 71eb9dab4..d999ff55b 100644 --- a/markdown-pages/docs/manual/array-and-list.mdx +++ b/markdown-pages/docs/manual/array-and-list.mdx @@ -82,6 +82,8 @@ myArray[0] = "bye"; ### Array spreads +**Since 11.1** + You can spread arrays of the same type into new arrays: diff --git a/markdown-pages/docs/manual/build-configuration.mdx b/markdown-pages/docs/manual/build-configuration.mdx index f9d0151e8..dbc2e8ada 100644 --- a/markdown-pages/docs/manual/build-configuration.mdx +++ b/markdown-pages/docs/manual/build-configuration.mdx @@ -149,9 +149,14 @@ Output to either CommonJS (the default) or JavaScript module. Example: This configuration only applies to you, when you develop the project. When the project is used as a third-party library, the consumer's own `rescript.json` `package-specs` overrides the configuration here, logically. +## external-stdlib + +**Since 9.0**: This setting allows depending on an externally built stdlib package (instead of a locally built stdlib runtime). Useful for shipping packages that are only consumed in JS or TS without any dependencies to the ReScript development toolchain. + ## suffix -The suffix can be freely chosen. However, we still suggest you stick to the convention and use +**Since 11.0**: The suffix can be freely chosen. However, we still suggest you stick to the convention and use + one of the following: - `".js`