From 7cd259f5e8c5b311cf99cd7dc5bef3072bd90c0b Mon Sep 17 00:00:00 2001 From: Josh Vlk Date: Mon, 3 Mar 2025 19:39:15 -0500 Subject: [PATCH 1/2] update the rest of the sentence after adding vite --- pages/docs/manual/v11.0.0/interop-with-js-build-systems.mdx | 2 +- pages/docs/manual/v12.0.0/interop-with-js-build-systems.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/docs/manual/v11.0.0/interop-with-js-build-systems.mdx b/pages/docs/manual/v11.0.0/interop-with-js-build-systems.mdx index c4a83965d..35c8c18db 100644 --- a/pages/docs/manual/v11.0.0/interop-with-js-build-systems.mdx +++ b/pages/docs/manual/v11.0.0/interop-with-js-build-systems.mdx @@ -12,7 +12,7 @@ If you come from JS, chances are that you already have a build system in your ex ## Popular JS Build Systems -The JS ecosystem uses a few build systems: [vite](https://vite.dev/), [browserify](http://browserify.org/), [rollup](https://github.com/rollup/rollup), [webpack](https://webpack.js.org/), etc. The latter's probably the most popular of the three (as of 2019 =P). These build systems do both the compilation and the linking (aka, bundling many files into one or few files). +The JS ecosystem uses a few build systems: [vite](https://vite.dev/), [browserify](http://browserify.org/), [rollup](https://github.com/rollup/rollup), [webpack](https://webpack.js.org/), etc. The first one is probably the most popular of the four (as of 2025 =P). These build systems do both the compilation and the linking (aka, bundling many files into one or few files). `rescript` only takes care of the compilation step; it maps one `.res`/`.resi` file into one JS output file. As such, in theory, no build system integration is needed from our side. From e.g. the webpack watcher's perspective, the JS files ReScript generates are almost equivalent to your hand-written JS files. We also recommend **that you initially check in those ReScript-generated JS files**, as this workflow means: diff --git a/pages/docs/manual/v12.0.0/interop-with-js-build-systems.mdx b/pages/docs/manual/v12.0.0/interop-with-js-build-systems.mdx index 9725aeb29..9021275a4 100644 --- a/pages/docs/manual/v12.0.0/interop-with-js-build-systems.mdx +++ b/pages/docs/manual/v12.0.0/interop-with-js-build-systems.mdx @@ -12,7 +12,7 @@ If you come from JS, chances are that you already have a build system in your ex ## Popular JS Build Systems -The JS ecosystem uses a few build systems: [vite](https://vite.dev/), [browserify](http://browserify.org/), [rollup](https://github.com/rollup/rollup), [webpack](https://webpack.js.org/), etc. The latter's probably the most popular of the three (as of 2019 =P). These build systems do both the compilation and the linking (aka, bundling many files into one or few files). +The JS ecosystem uses a few build systems: [vite](https://vite.dev/), [browserify](http://browserify.org/), [rollup](https://github.com/rollup/rollup), [webpack](https://webpack.js.org/), etc. The first one is probably the most popular of the four (as of 2025 =P). These build systems do both the compilation and the linking (aka, bundling many files into one or few files). `rescript` only takes care of the compilation step; it maps one `.res`/`.resi` file into one JS output file. As such, in theory, no build system integration is needed from our side. From e.g. the webpack watcher's perspective, the JS files ReScript generates are almost equivalent to your hand-written JS files. We also recommend **that you initially check in those ReScript-generated JS files**, as this workflow means: From bf3599decf38cf64d53bc4f59abbb29df213c455 Mon Sep 17 00:00:00 2001 From: Josh Vlk Date: Mon, 3 Mar 2025 19:46:06 -0500 Subject: [PATCH 2/2] empty