[ANN] ReScript v11.1 is out!

Today we released ReScript v11.1.0!

It builds upon the foundation laid by ReScript 11.0 earlier this year and comes with a host of exciting additions. Beside the usual bug fixes there are the following new features:

Read the announcement post to learn more: ReScript 11.1 | ReScript Blog .

We highly recommend to update if you are already on v11, and if not, it’s also better to jump right to 11.1 since some more bugs have been fixed as well (see Changelog).

Outlook

The v11 branch is now feature-complete and will only receive critical bug-fix update, as we will focus on v12 from now on. Some topics of focus in that release will be

  • Moving Rescript Core into the compiler and getting rid of the OCaml stdlib
  • Exploring the possibility to swap out the Ninja-based build system with rewatch for better monorepo support and even faster compilation speed.
  • Making it easier to create libraries for consumption from TypeScript with GenType
    and more

ReScript Retreat

https://x.com/ReScriptAssoc/status/1777231593276359123

We will focus on those topics among others when we will meet at the first ReScript Retreat in Vienna from May 23-26, 2024, where 15 (yes, two more since the tweet!) core contributors have been invited to hack on and learn about compiler, build system and tooling.

25 Likes

Wohooo :tada: ! This is awesome!

Does anyone know how to update the default vite set up to support preact instead of react? Example repo would be greatly appreciated!

1 Like

vite.config.js

import { defineConfig } from "vite";
import preact from "@preact/preset-vite";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    preact({
      include: ["**/*.res.mjs"],
    }),
  ],
});
2 Likes

hi, any example repo for preact now?

Here is the rescritp-preact demo I wrote based on rescript-react and preact aliasing-in-webpack
It can run,but it is not perfect.

2 Likes

Thanks, here is my another demo without preact/compat

v11 API docs doesn’t works.

https://rescript-lang.org/docs/manual/latest/api/core

@days_v in which country are you? It works for me in France.

China with Singapore vpn.

What kind of Chrome-Fork are you using?
Is it based on some outdated version by any chance?