Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion markdown-pages/blog/release-9-0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Point External Stdlib link to an existing doc

The new External Stdlib link targets ../docs/manual/build-external-stdlib.mdx, but there is no markdown-pages/docs/manual/build-external-stdlib.mdx file in the repo, so this link resolves to a missing page for readers of the 9.0 release post. Please update the href to an existing document (or add the referenced page) to avoid a dead documentation link.

Useful? React with 👍 / 👎.


### Less Bundle Bloat when Adding ReScript

Expand Down
2 changes: 2 additions & 0 deletions markdown-pages/docs/manual/array-and-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ myArray[0] = "bye";

### Array spreads

**Since 11.1**

You can spread arrays of the same type into new arrays:

<CodeTab labels={["ReScript", "JS Output"]}>
Expand Down
7 changes: 6 additions & 1 deletion markdown-pages/docs/manual/build-configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Loading