rollup-plugin-banner
rollup-plugin-banner copied to clipboard
banner as a function
Hello, I filed an issue in rollup https://github.com/rollup/rollup/issues/3398 to include more information about the output chunk in banner option.
Is it something that could be implemented in the banner plugin ? I'm willing to do a PR. I just want to confirm it can be done.
There could be e.g. a new option
{resolveBanner: (chinkInfo: ChunkInfo) => string|Promise<string>}
.
I believe it could be done without introducing any Breaking change.