-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
perf: implement shouldOnCreateNode for all our plugins/benchmarks #27545
Conversation
5d41c9c
to
d497458
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Left one question but nothing blocking this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the benchmark inconsistencies (mentioned in Slack) LGTM
Small typo but other than that you consistently moved the exports in the same order, same checks in plugins 👍
Published as part of one of the following:
|
…tsbyjs#27545) * perf: implement shouldOnCreateNode for all our plugins * Drop changes in /benchmarks, fix typo
This is a followup for #27442 which introduced a
shouldOnCreateNode
API to test whether the asynconCreateNode
callback ought to be called.This PR implements this hook for all the plugins in our monorepo and some benchmark sites.
For all plugins, the behavior should remain the same and should be backwards compatible since the check also exists in the
onCreateNode
hook itself.If a plugin happens to break, anyways, please try to fix forward rather than revert this whole PR. Thanks :)