rollup-plugin-banner2

JSON →
library 1.3.1 ·javascript
verified Apr 27, 2026

Rollup plugin to prepend a banner (e.g., license, metadata) before bundled JavaScript code, surviving minification where Rollup's built-in output.banner is stripped by plugins like rollup-plugin-uglify. Version 1.3.1 (stable; maintained as of 2024). Key differentiators from rollup-plugin-banner (unmaintained): supports sourcemaps, per-chunk banners via ChunkInfo, custom formatters (docBlock, docBlockAndGap), and async resolveBanner. Drawbacks vs alternatives: no file path loading, no package.json template injection, no automatic JS comment wrapping. Requires Node >=12.13 and Rollup.

total hits 10
actors 4 distinct systems
last hit 9d ago AhrefsBot
GPTBot
5
ClaudeBot
1
Search engines
1

top countries 🇺🇸 United States · 🇨🇦 Canada