Repo Structure
This document outlines the structure of the repository and the purpose of each directory.
/crates
We store all the Rust crates in this directory.
/benchBenchmark programs for Rust side of the project./rolldownCore logic of rolldown the bundler./rolldown_bindingGlue code that binds the core logic to the Node.js.
/packages
We store all the Node.js packages in this directory.
/rolldownNode.js package for the project./benchBenchmark programs for Node.js side of the project./rollup-testsAdapter for running rollup tests with rolldown./vite-testsScript to run Vite's own test suite with local rolldown, on a throwaway clone of the shared root/vitecheckout.
/vite
The single Vite checkout shared by the dev-server test harness (packages/test-dev-server) and packages/vite-tests: a gitignored clone of vitejs/vite at the latest rolldown-canary rebased onto the latest main, created by just setup-vite. It must stay unpatched: never edit Vite source files inside it.
/examples
This directory contains examples of how to use rolldown in Node.js for various scenarios.
/scripts
This directory contains scripts that are used to automate various tasks for the project.
/web
This directory contains some websites related to the project.
/docsDocumentation for the project.