Put generateRound = 0 in buildEnd instead of transform
Follow-up to the buildEnd refactor in #345
Details
since the buildEnd hook exists nowadays, we can just reset generateRound there, right before generateBundle is called for each output and increments it per output
also modify the comment to account for this change and the fact that buildEnd exists and is used nowadays
Review Notes
Note that generateRound is literally only used for logging purposes now, since the buildEnd refactor made it otherwise unneeded for its original purpose of not duplicating type-check errors between different outputs.
Could totally remove it as well 🤷
Summary
Put
generateRound = 0
inbuildEnd
instead oftransform
buildEnd
refactor in #345Details
buildEnd
hook exists nowadays, we can just resetgenerateRound
there, right beforegenerateBundle
is called for each output and increments it per outputbuildEnd
exists and is used nowadaysReview Notes
Note that
generateRound
is literally only used for logging purposes now, since thebuildEnd
refactor made it otherwise unneeded for its original purpose of not duplicating type-check errors between different outputs. Could totally remove it as well 🤷