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

feat: Warn on multiple hook initialization #165

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

timfish
Copy link
Contributor

@timfish timfish commented Nov 26, 2024

We've seen cases where users have initialised the import-in-the-middle hook more than once. I can't really think of any cases where this is desirable and it's quite difficult to diagnose so it's probably worth displaying a warning.

hook.js Outdated Show resolved Hide resolved
@timfish timfish merged commit 9bd539e into nodejs:main Dec 4, 2024
47 of 48 checks passed
@timfish timfish deleted the feat/warn-multiple-hook-init branch December 4, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants