Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move generateRound = 0 to buildEnd #390

Merged
merged 1 commit into from
Aug 8, 2022

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