Side by side
Rollup vs Turbopack
Both stand on javascript build tools. Which one you can start free with, which one lets you read the code, and what each costs once you pay.
Free plan APILinuxMac+2
Rollup offers configurable bundling for applications and libraries, with tree-shaking, code splitting, and several interfaces. Developers importing CommonJS modules need a plugin, and the project recommends keeping Rollup and official plugins current.
Visit Rollup Free plan LinuxMacWindows
Choose Turbopack for local development in Next.js when its supported languages, framework features, and styling options fit your project. Look elsewhere or plan additional tooling if you need webpack plugins or want the bundler itself to perform TypeScript type checking.
Visit TurbopackThe facts
| Rollup | Turbopack | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Not published |
| Runs on | API, Linux, Mac, Web, Windows | Linux, Mac, Windows |
| Lowest paid plan | Not published | Free or on request |
| Plans published | None | 1 |
| Maker | Not published | Not published |
| Website | rollupjs.org | nextjs.org |
| On javascript build tools | #14 of 27 | #18 of 27 |
Rollup: what it does well
- Free and released under the MIT License.
- Supports multiple output formats, including ES modules and CommonJS.
- Removes unused imported code through tree-shaking.
- Offers CLI, JavaScript API, and plugin API.
- Browser REPL accepts ES6 modules.
What to know first
- Importing CommonJS modules requires a plugin.
- Project recommends using the latest Rollup and official plugins.
Turbopack: what it does well
- Included in Next.js with no separate price stated.
- Default bundler for basic Next.js use without configuration.
- Caches results at function level and persists them between runs.
- Supports both the Pages Router and App Router.
- Native bindings cover macOS, Windows, and Linux on x64 and ARM64.
What to know first
- Webpack plugins are unsupported.
- TypeScript type checking is not performed.
- Custom Sass functions are unsupported.
- Yarn Plug'n'Play and experimental URL imports are not planned for support.
Alternatives to Rollup Alternatives to Turbopack The whole list
