plugins
🍣 The one-stop shop for official Rollup plugins
What This Is
This is a collection of official plugins for Rollup, which is a tool that bundles JavaScript code. Think of it like a toolbox where developers can grab pre-made extensions that add specific capabilities to Rollup. The repository is maintained by the Rollup team and includes plugins they consider essential or that they actively support.
What It Does
Rollup itself takes your JavaScript files and combines them into optimized packages for web browsers or Node.js. But out of the box, it's pretty basic—it mainly handles JavaScript. This repository adds specialized capabilities by offering plugins that handle things most projects need. For example, there's a plugin to convert files written in TypeScript into JavaScript, another to import JSON data files, one to handle images, and another to replace text during the bundling process. There's even a plugin for importing WebAssembly code. Instead of each developer hunting for their own third-party plugins and hoping they work well together, they can grab the official ones here.
Who Uses This
A developer building a web app with Rollup would use these plugins. Say you're writing TypeScript and want to bundle it with Rollup—you'd grab the TypeScript plugin from here. If your project imports PNG images or CSV data files, there are plugins for those too. Project teams that want to standardize on vetted, well-maintained plugins benefit from having them all in one place rather than scattered across different projects and maintainers.
How It's Organized
The repository is a monorepo, meaning it contains multiple separate packages (21 plugins plus shared utilities) all in one place. Each plugin is independent and can be installed and updated separately, but they're all developed and tested together in the same repository. This makes it easier for the Rollup team to ensure they all work well with the core tool and don't conflict with each other.