-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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: Expose exclude
and include
options for ESM loader
#12910
Conversation
size-limit report 📦
|
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.
Interesting! Didn't know that iitm has this possibility.
LGTM - as a follow-up, I think we should also add this to our docs. Mentioning it in the ESM guide is probably a good place but it's fairly exposed. Feel free to add it wherever you think it makes sense!
Ah good point, I should have mentioned that I added this feature here: |
Closes #12878
I added this feature to
import-in-the-middle
which was released in v1.9.0:include
orexclude
list viamodule.register()
nodejs/import-in-the-middle#124This PR changes the hook from
@opentelemetry/instrumentation/hook.mjs
toimport-in-the-middle/hook.mjs
as it was only pasing though anyway and the otel hook doesn't pass theinitialize
export.