A minimal sample project that demonstrates Rolldown — the Rust-based JavaScript bundler — following the official Getting Started guide.
.
├── src/
│ ├── main.js # Entry point
│ ├── hello.js # Greeting module
│ └── math.js # Tiny math helpers
├── rolldown.config.js
└── package.json
This project uses pnpm as its package manager.
pnpm installBundle src/main.js into dist/bundle.js using the config file:
pnpm buildOr invoke the CLI directly:
pnpm exec rolldown src/main.js --file dist/bundle.jspnpm startExpected output:
Hello Rolldown!
2 + 3 = 5
4 * 5 = 20