Rollup VS vite

Compare Rollup vs vite and see what are their differences.


Next-generation ES module bundler (by rollup)


Next generation frontend tooling. It's fast! (by vitejs)
Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • OPS - Build and Run Open Source Unikernels
  • Scout APM - Less time debugging, more time building
Rollup vite
22 236
21,072 36,072
0.7% 5.2%
9.3 9.9
5 days ago 3 days ago
JavaScript TypeScript
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of Rollup. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-03.
  • Configuring CommonJS & ES Modules for Node.js
    6 projects | | 3 Jan 2022
    This also means that whatever build tooling must produce the distribution file with a .cjs file extension. This might necessitate chaining multiple build tools or adding a subsequent step to move/rename the file to have the .cjs file extension (ex mv ./dist/index.js ./dist/index.cjs)3. This can be worked around by adding a subsequent step to move/rename those outputted files (ex Rollup or a simple shell script).
  • Make SvelteKit bundle all *.ts files into a single bundle.js
    1 project | | 1 Jan 2022
    I think Rollup is where the code-splitting is happening so you will need to address the problem there. Here is an ongoing discussion that seems to have some solutions:
  • Vite, the hassle-free alternative to Webpack
    4 projects | | 12 Nov 2021
    Vite doesn't create itself the bundles. Under the hood, it uses two tools: Esbuild while you're developing, and Rollup.js to create the production bundle.
  • Rakkas: Next.js alternative powered by Vite
    13 projects | | 14 Oct 2021
    If you're not familiar with Vite, it's an instance of a new class of tools, sometimes called non-bundlers, that leverage modern browsers' native EcmaScript modules support to do away with the bundling during development. This results in instant server start and much faster updates than traditional bundlers like Webpack, Rollup, or Parcel. These new tools (another example is Snowpack) improve developer experience so much that, once you try, you will never want to go back to your old tooling.
  • The Ultimate Guide to Getting Started with the Rollup.js JavaScript Bundler
    5 projects | | 6 Oct 2021
    Rollup.js is a Node.js module bundler most often used for client-side JavaScript running in the browser. (You can bundle Node.js scripts but there are fewer reasons to do so). The tool compiles all your JavaScript source files into a single bundle for inclusion in your production web pages.
  • Major updates for v0.0.3
    9 projects | | 19 Sep 2021
    I used monaco-editor for the code-editor, esbuild and rollup as bundler and treeshaker respectively, pako as a js port of the zlib and gzip libraries, pretty-bytes to convert the gzip size to human readable values, and countapi-js to keep track of the number of page visits, in a private and secure way.
  • Introducing Magic URL Login to Appwrite
    4 projects | | 7 Sep 2021
    If you're using a bundler (like Rollup or webpack), you can import the Appwrite module when you need it:
  • Created CLI Tool that Creates/Remove GitHub Labels
    13 projects | | 31 Aug 2021
    Export as a javascript module, making your work fully tree-shakable for consumers capable of using es6 imports (like Rollup, Webpack, or Parcel)
  • What does it take to support Node.js ESM?
    9 projects | | 12 Aug 2021
    There are workarounds, but nothing actually works in 100% of the possible use-cases (see for example, ts-jest issue), and for that reason, we recommend tooling that enables this type of building without needing any workaround, usually using Rollup and/or esbuild.
  • [AskJS] How can i structure my js library?
    4 projects | | 20 Jul 2021
    I agree, although, at this point, it might be better to use a bundler that uses ESM in the final bundle like Vite, Rollup, or Snowpack. Rollup works better for libraries than Webpack, at least in my opinion.


Posts with mentions or reviews of vite. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-14.
  • Thoughts on Vite?
    4 projects | | 14 Jan 2022
    Plus, I was writing a prototype and I found a bug with cookies in the dev server, and I got [no answers](} so far.
    4 projects | | 14 Jan 2022
  • My Daily Reads - Tailored dev content delivered to your inbox.
    7 projects | | 13 Jan 2022
  • Watchkeeping: a timesheet compiling tool for Seafarers
    4 projects | | 13 Jan 2022
    VITE: superfast front-end tool to render React app.
  • Converting to Vite (Part 2)
    2 projects | | 13 Jan 2022
    Another thing that we ran into dealt with the fact that some libraries end up just a little bit differently in development bundling than in production bundling. When developing, Vite takes advantage of ESM to let the browser effectively cache your dependencies, separated out into module files. In production, everything is bundled into one vendor file. Libraries can export different compiled versions between these two situations. We were having a lot of trouble that we isolated down to a specific component, that in turn used the react-markdown library. After reading through issues for this one and its dependencies, we found that there was a circular reference in one of react-markdown's dependencies that only showed up in production bundles.
  • Recommended Industry Oriented Vue Technology Stack
    4 projects | | 12 Jan 2022
    I tried Vite but I found a bug in proxy server calls (cookies are not sent). I got no official answer so far, so I assume it's simply not ready yet.
  • SvelteKit .env secrets
    2 projects | | 12 Jan 2022
    SvelteKit uses Vite and it has a specific way to reference Env Variables and Modes, you reference a .env variable with import.meta.env.VITE_NAME_OF_VARIABLE the VITE_* prefix means in SvelteKit it makes that variable available on the client.
  • SASS vs CSS Modules vs CSS-in-JS vs Compile time CSS-in-JS. Who wins?
    9 projects | | 11 Jan 2022
    And second problem, because all of our styles is just abstract global CSS we don't have a TypeScript support to check that our style really exist. And the resulting problem we don't have good IDE intelligence (especially if we have have additionalData that import of some files that contain SASS vars and mixins, in Webpack/Vite config). Yeah, we have solutions like:
  • Why TypeScript Won
    2 projects | | 10 Jan 2022
    Have you tried Vite? It's an incredibly fast frontend build tool.
  • Animated Website Backgrounds Easily with vantajs
    5 projects | | 10 Jan 2022
    This step is easy if you use since you just need to click a react js project on dashboard. If you prefer to use local dev env, you can use CRA(create-react-app), Vite etc.

What are some alternatives?

When comparing Rollup and vite you can also consider the following projects:

Next.js - The React Framework

parcel - The zero configuration build tool for the web. 📦🚀

esbuild - An extremely fast JavaScript and CSS bundler and minifier

webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

swc - swc is a super-fast compiler written in rust; producing widely-supported javascript from modern standards and typescript.

SvelteKit - The fastest way to build Svelte apps

create-react-app - Set up a modern web app by running one command.

Snowpack - ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️

astro - Build faster websites, faster. 🚀🧑‍🚀✨