René's URL Explorer Experiment


Title: Expose module redirection helper for use in ESM hooks · Issue #31 · cspotcode/node-source-map-support · GitHub

Open Graph Title: Expose module redirection helper for use in ESM hooks · Issue #31 · cspotcode/node-source-map-support

X Title: Expose module redirection helper for use in ESM hooks · Issue #31 · cspotcode/node-source-map-support

Description: Enhancement to redirection feature added in #23 and #30 We can install a redirector for require() by patching Module._resolveFilename but we can't do that for ESM loader hooks. If a loader hook wants to redirect, it needs to call out to ...

Open Graph Description: Enhancement to redirection feature added in #23 and #30 We can install a redirector for require() by patching Module._resolveFilename but we can't do that for ESM loader hooks. If a loader hook wan...

X Description: Enhancement to redirection feature added in #23 and #30 We can install a redirector for require() by patching Module._resolveFilename but we can't do that for ESM loader hooks. If a loader hook...

Opengraph URL: https://github.com/cspotcode/node-source-map-support/issues/31

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Expose module redirection helper for use in ESM hooks","articleBody":"Enhancement to redirection feature added in #23 and #30\r\nWe can install a redirector for `require()` by patching `Module._resolveFilename` but we can't do that for ESM loader hooks.  If a loader hook wants to redirect, it needs to call out to us directly.\r\n\r\nConsumers like ts-node who implement their own loader hooks may want to do the same redirection.  We can expose a function they can use to do this redirection.  Perhaps it can even support our redirection callback?  Perhaps not since ESM loaders will eventually run in a separate thread.\r\n\r\nShould it be implemented as a loader itself?  To support chaining?  Probably not since it would be more complex, and most likely the only consumer of this feature is going to be ts-node.","author":{"url":"https://github.com/cspotcode","@type":"Person","name":"cspotcode"},"datePublished":"2021-10-10T01:05:05Z","url":"https://github.com/cspotcode/node-source-map-support/issues/31"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3c39abc8-7fdc-09b1-c962-b29f7668028f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAF30:39F0B6:8DCB52:C7B706:6AFB71B7
html-safe-nonce6ef9381242b3c1537d8c32b5a57f3bf6f6989989d589463c320a763a828bc90d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjMwOjM5RjBCNjo4RENCNTI6QzdCNzA2OjZBRkI3MUI3IiwidmlzaXRvcl9pZCI6IjE3NzUxMTMxMDc2NzI4ODc3MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac26c01e233278cb74d3bf9a965a9ed0593e02742cb982d82f3b4dec09d1b6f4aa
hovercard-subject-tagissue:1021847657
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cspotcode/node-source-map-support/31/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cf037ab16daf453850a476a205c4941c34a08ec254a45712c5dbdc8b36f6492b/cspotcode/node-source-map-support/issues/31
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cf037ab16daf453850a476a205c4941c34a08ec254a45712c5dbdc8b36f6492b/cspotcode/node-source-map-support/issues/31
og:image:altEnhancement to redirection feature added in #23 and #30 We can install a redirector for require() by patching Module._resolveFilename but we can't do that for ESM loader hooks. If a loader hook wan...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecspotcode
hostnamegithub.com
expected-hostnamegithub.com
None0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48
turbo-cache-controlno-preview
go-importgithub.com/cspotcode/node-source-map-support git https://github.com/cspotcode/node-source-map-support.git
octolytics-dimension-user_id376504
octolytics-dimension-user_logincspotcode
octolytics-dimension-repository_id310942201
octolytics-dimension-repository_nwocspotcode/node-source-map-support
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id310942201
octolytics-dimension-repository_network_root_nwocspotcode/node-source-map-support
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2e8872b770cc4d5d0cc1f2026afab747a268e2ce
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/cspotcode/node-source-map-support/issues/31#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcspotcode%2Fnode-source-map-support%2Fissues%2F31
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcspotcode%2Fnode-source-map-support%2Fissues%2F31
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=cspotcode%2Fnode-source-map-support
Reloadhttps://github.com/cspotcode/node-source-map-support/issues/31
Reloadhttps://github.com/cspotcode/node-source-map-support/issues/31
Reloadhttps://github.com/cspotcode/node-source-map-support/issues/31
cspotcodehttps://github.com/cspotcode
node-source-map-supporthttps://github.com/cspotcode/node-source-map-support
Codehttps://github.com/cspotcode/node-source-map-support
Issues12 (12)https://github.com/cspotcode/node-source-map-support/issues
Pull requests2 (2)https://github.com/cspotcode/node-source-map-support/pulls
Actionshttps://github.com/cspotcode/node-source-map-support/actions
Projectshttps://github.com/cspotcode/node-source-map-support/projects
Security and qualityhttps://github.com/cspotcode/node-source-map-support/security
Insightshttps://github.com/cspotcode/node-source-map-support/pulse
https://github.com/cspotcode/node-source-map-support
New issuehttps://github.com/login?return_to=https://github.com/cspotcode/node-source-map-support/issues/31
New issuehttps://github.com/login?return_to=https://github.com/cspotcode/node-source-map-support/issues/31
Expose module redirection helper for use in ESM hookshttps://github.com/cspotcode/node-source-map-support/issues/31#top
https://github.com/cspotcode
cspotcodehttps://github.com/cspotcode
on Oct 10, 2021https://github.com/cspotcode/node-source-map-support/issues/31#issue-1021847657
#23https://github.com/cspotcode/node-source-map-support/pull/23
#30https://github.com/cspotcode/node-source-map-support/pull/30
Sign up for freehttps://github.com/signup?return_to=https://github.com/cspotcode/node-source-map-support/issues/31
Sign in to commenthttps://github.com/login?return_to=https://github.com/cspotcode/node-source-map-support/issues/31
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.