Rollup plugins with extra outputs #2765
Unanswered
mattsoulanille
asked this question in
Q&A
Replies: 1 comment
-
I've learned some more about Bazel, and I believe (but haven't tried it yet) that one way to do this is to create a rule that wraps |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a good way to make Bazel aware of extra outputs from rollup plugins in
rollup_bundle
. For example, rollup-plugin-visualizer generates an html page to show the contents of a bundle. It can be made to write the html page to the output directory by using a template, e.g.:rollup_template.config.js
some_build_rule.bzl
However, I haven't found a good way to declare that this html output file exists. Ideally, the
rollup_bundle
that uses an instance of the above template would declare it, but I don't think that's supported. Right now, I'm just not declaring it (since I don't have any downstream rules that need the html pages), and it still appears in the output tree as expected. This is not a blocker for me. I'm just wondering if there's a better solution.Beta Was this translation helpful? Give feedback.
All reactions