Skip to content

gsaini/rolldown-getting-started

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rolldown-getting-started

Rolldown Node.js pnpm JavaScript Rust

GitHub last commit GitHub repo size GitHub top language

A minimal sample project that demonstrates Rolldown — the Rust-based JavaScript bundler — following the official Getting Started guide.

Project layout

.
├── src/
│   ├── main.js     # Entry point
│   ├── hello.js    # Greeting module
│   └── math.js     # Tiny math helpers
├── rolldown.config.js
└── package.json

Setup

This project uses pnpm as its package manager.

pnpm install

Build

Bundle src/main.js into dist/bundle.js using the config file:

pnpm build

Or invoke the CLI directly:

pnpm exec rolldown src/main.js --file dist/bundle.js

Run

pnpm start

Expected output:

Hello Rolldown!
2 + 3 = 5
4 * 5 = 20

About

Sample project demonstrating Rolldown — the Rust-based JavaScript bundler. Follows the official Getting Started guide and uses pnpm as the package manager.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors