From b0cd45356fcd6e70565644239e9371e2f817c937 Mon Sep 17 00:00:00 2001 From: Christophe Rosset Date: Wed, 30 Oct 2024 11:33:39 +0100 Subject: [PATCH] about the tools --- src/SUMMARY.md | 1 + src/about-the-tools.md | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 src/about-the-tools.md diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 887d258..26efad7 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -1,6 +1,7 @@ # Toolchain Notes [Toolchain Notes](./README.md) +[About rolldown & cie](./about-the-tools.md) ## rolldown diff --git a/src/about-the-tools.md b/src/about-the-tools.md new file mode 100644 index 0000000..fc26430 --- /dev/null +++ b/src/about-the-tools.md @@ -0,0 +1,26 @@ +# About the tools + +## Vite + +[Vite](https://vite.dev/) is a modern build tool for the web. For the moment, it relies on the following bundlers: + +- [esbuild](https://esbuild.github.io/) (in go) for development + - Very fast, serves native esm (no bundling overhead) +- [rollup](https://rollupjs.org/) for production + - Better plugin api / ecosystem than esbuild + +The fact that there are two different bundlers isn't optimal, this is where comes: + +## Rolldown + +> [Rolldown](https://rolldown.rs/) is a JavaScript bundler written in Rust intended to serve as the future bundler used in Vite. It provides Rollup-compatible APIs and plugin interface, but will be more similar to esbuild in scope. + +## Oxc + +[Oxc](https://oxc.rs/) (The JavaScript Oxidation Compiler) is a collection of high-performance tools for the JavaScript language written in Rust. + +The goal of the project is to provide the next generation toolchain for JavaScript low-level abstraction that each can share so that: + +- we share one kind of parser +- we share the same AST +- ..