Skip to content

Conversation

@agilgur5
Copy link
Collaborator

@agilgur5 agilgur5 commented Jul 22, 2022

Summary

Put generateRound = 0 in buildEnd instead of transform

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 🤷

- since the `buildEnd` hook exists nowadays, we can just reset it 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
@agilgur5 agilgur5 added kind: internal Changes only affect the internals, and _not_ the public API or external-facing docs scope: watch mode Related to Rollup's watch mode labels Jul 22, 2022
@ezolenko ezolenko merged commit 3dda648 into ezolenko:master Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: internal Changes only affect the internals, and _not_ the public API or external-facing docs scope: watch mode Related to Rollup's watch mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants