Skip to content

fix: properly handle internals when specifier matches#220

Merged
timfish merged 1 commit intonodejs:mainfrom
isaacs:isaacs/fix-internals-hook-with-specifier-match
Jan 11, 2026
Merged

fix: properly handle internals when specifier matches#220
timfish merged 1 commit intonodejs:mainfrom
isaacs:isaacs/fix-internals-hook-with-specifier-match

Conversation

@isaacs
Copy link
Contributor

@isaacs isaacs commented Jan 9, 2026

The fix in a20f47a had the unfortunate side effect of skipping the proper handling of internals: true hooks when the specifier was an exact match to the the module name being loaded.

This resulted in breaking the dd-trace vitest integration.

cc: @BridgeAR

re: #215 (comment)

The fix in a20f47a had the unfortunate side effect of skipping the
proper handling of `internals: true` hooks when the specifier was an
exact match to the the module name being loaded.

This resulted in breaking the dd-trace vitest integration.
@timfish timfish merged commit 05e4216 into nodejs:main Jan 11, 2026
51 checks passed
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