rollup-plugin-banner2
JSON →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.
Traffic · last 30 days ↓100% vs prev 7d
total hits 10
actors 4 distinct systems
last hit 9d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada
Resources
API endpoints
full doc /v1/registry/rollup-plugin-banner2