https://github.com/gsaini/rolldown-getting-started
Sample project demonstrating Rolldown — the Rust-based JavaScript bundler. Follows the official Getting Started guide and uses pnpm as the package manager.
https://github.com/gsaini/rolldown-getting-started
build-tool bundler esm getting-started javascript nodejs pnpm rolldown rust-based sample-project
Last synced: 2 days ago
JSON representation
Sample project demonstrating Rolldown — the Rust-based JavaScript bundler. Follows the official Getting Started guide and uses pnpm as the package manager.
- Host: GitHub
- URL: https://github.com/gsaini/rolldown-getting-started
- Owner: gsaini
- Created: 2026-05-08T03:43:00.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-05-08T03:48:47.000Z (about 1 month ago)
- Last Synced: 2026-06-14T23:34:29.081Z (2 days ago)
- Topics: build-tool, bundler, esm, getting-started, javascript, nodejs, pnpm, rolldown, rust-based, sample-project
- Language: JavaScript
- Homepage: https://rolldown.rs/guide/getting-started
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rolldown-getting-started








A minimal sample project that demonstrates [Rolldown](https://rolldown.rs/) — the Rust-based JavaScript bundler — following the official [Getting Started](https://rolldown.rs/guide/getting-started) guide.
## Project layout
```text
.
├── src/
│ ├── main.js # Entry point
│ ├── hello.js # Greeting module
│ └── math.js # Tiny math helpers
├── rolldown.config.js
└── package.json
```
## Setup
This project uses [pnpm](https://pnpm.io/) as its package manager.
```bash
pnpm install
```
## Build
Bundle `src/main.js` into `dist/bundle.js` using the config file:
```bash
pnpm build
```
Or invoke the CLI directly:
```bash
pnpm exec rolldown src/main.js --file dist/bundle.js
```
## Run
```bash
pnpm start
```
Expected output:
```text
Hello Rolldown!
2 + 3 = 5
4 * 5 = 20
```