🍣 The one-stop shop for official Rollup plugins
This repository houses plugins that Rollup considers critical to every day use of Rollup, plugins which the organization has adopted maintenance of, and plugins that the project recommends to its users.
|Define and resolve aliases for bundle dependencies
|Automatically install dependencies that are imported by a bundle
|Compile your files with Babel
|System beeps on errors and warnings
|Compile ES2015 with buble
|Convert CommonJS modules to ES6
|Import modules from Data URIs
|Resolving dynamic imports that contain variables.
|Verify entry point and all imported files with ESLint
|Replace cjs syntax for esm output bundles
|Convert .gql/.graphql files to ES6 modules
|Create HTML files to serve Rollup bundles
|Import JPG, PNG, GIF, SVG, and WebP files
|Scan modules for global variables and injects
import statements where necessary
|Convert .json files to ES6 modules
export declarations to legacy non-module scripts
|Use multiple entry points for a bundle
|Locate and bundle third-party dependencies in node_modules
|Replace strings in files while bundling
|Run your bundles in Node once they're built
|Remove debugger statements and functions like assert.equal and console.log from your code
|Compile TypeScript, Flow, JSX, etc with Sucrase
|Generate a minified output bundle with terser
|Integration between Rollup and Typescript
|Import files as data-URIs or ES Modules
|Load virtual modules from memory
|Import WebAssembly code with Rollup
|Convert YAML files to ES6 modules
|A set of utility functions commonly used by Rollup plugins
To begin, please install
$ npm install pnpm -g
All plugin packages are kept in the
$ pnpm --filter ./packages/<name> add <package>
<package> is the name of the NPM package you wish to add for a plugin package, and
<name> is the proper name of the plugin. e.g.
$ pnpm publish <name> [flags]
<name> is the portion of the plugin package name following
The publish script performs the following actions:
CHANGELOG.md for the target plugin
CHANGELOG.md, with a commit message is in the form
The following flags are available to modify the publish process:
--dry tells the script to perform a dry-run, skipping any file modifications, NPM, or Git Actions. Results from version determination and new ChangeLog additions are displayed.
--patch can be used to force a particular type of semver bump.
--no-push will instruct the script not to push changes and tags to Git.
--no-tag will instruct the script not to tag the release.
To run tests on all packages which have changes:
$ pnpm test
To run tests on a specific package:
$ pnpm --filter ./packages/<name> test
To lint all packages which have changes:
$ pnpm lint
To lint a specific package:
$ pnpm --filter ./packages/<name> lint
Note: Scripts in the repository will run the root
lint script on those packages which have changes. This is also how the CI pipelines function. To run either on a package outside of that pipeline, use
pnpm <script> @rollup/plugin-<name>.
While we don't have an official procedure for adding third-party plugins to this repository, we are absolutely open to the idea. If you'd like to speak about your project being a part of this repo, please reach out to @RollupJS on Twitter.