Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean: remove redundant
generateRound === 0
check (#400)
- 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 - c.f. old docs https://github.com/rollup/rollup/blob/v1.18.0/docs/05-plugin-development.md#options - it's possible this is _even older_, but I couldn't find plugin docs for Rollup pre-1.0 to try to confirm against
- Loading branch information