/rules_rollup

Bazel rules for https://rollupjs.org/ - a JavaScript bundler

Primary LanguageStarlarkApache License 2.0Apache-2.0

Bazel rules for rollup

This is a pure-starlark distribution which replaces the @bazel/rollup npm package. It's meant for use with aspect-build/rules_js, which has a pnpm-based layout for node_modules.

Installation

From the release you wish to use: https://github.com/aspect-build/rules_rollup/releases copy the WORKSPACE snippet into your WORKSPACE file.

Usage

See the API documentation and the example usage in the example folder. Note that the example also relies on code in the /WORKSPACE file in the root of this repo.