rollup-plugin-banner icon indicating copy to clipboard operation
rollup-plugin-banner copied to clipboard

banner as a function

Open stropho opened this issue 4 years ago • 0 comments

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.

stropho avatar Feb 26 '20 10:02 stropho