Removes the if (generateRound === 0) check in the options hook as it is redundant / unnecessary
Related to, but independent of, #390
Details
when options is called, generateRound should have already been reset to 0, so this is redundant / unnecessary
options is only called once per watch cycle
options is also an input hook, not an output hook, i.e. it's only called once for all outputs, not per each output
generateRound only tracks the output round
this might be leftover historical remnants prior to Rollup officially separating output hooks, but even before then, it should only have been called once for all outputs
since, per the Rollup API, it's only called during rollup.rollup and not during bundle.generate etc
Summary
Removes the
if (generateRound === 0)
check in theoptions
hook as it is redundant / unnecessaryDetails
when
options
is called,generateRound
should have already been reset to0
, so this is redundant / unnecessaryoptions
is only called once per watch cycleoptions
is also aninput
hook, not anoutput
hook, i.e. it's only called once for all outputs, not per each outputgenerateRound
only tracks the output roundthis might be leftover historical remnants prior to Rollup officially separating
output
hooks, but even before then, it should only have been called once for all outputsrollup.rollup
and not duringbundle.generate
etc