What problem does this feature solve?
Some plugins (like Tailwind) need to scan all input files BEFORE transforming one or more of them. While a later build hook like renderStart or writeBundle could be used, this is problematic if another plugin also needs access to the transformed output.
What does the proposed API look like?
https://rollupjs.org/plugin-development/#build-hooks
What problem does this feature solve?
Some plugins (like Tailwind) need to scan all input files BEFORE transforming one or more of them. While a later build hook like
renderStartorwriteBundlecould be used, this is problematic if another plugin also needs access to the transformed output.What does the proposed API look like?
https://rollupjs.org/plugin-development/#build-hooks