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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3c39abc8-7fdc-09b1-c962-b29f7668028f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF30:39F0B6:8DCB52:C7B706:6AFB71B7 |
| html-safe-nonce | 6ef9381242b3c1537d8c32b5a57f3bf6f6989989d589463c320a763a828bc90d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjMwOjM5RjBCNjo4RENCNTI6QzdCNzA2OjZBRkI3MUI3IiwidmlzaXRvcl9pZCI6IjE3NzUxMTMxMDc2NzI4ODc3MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 26c01e233278cb74d3bf9a965a9ed0593e02742cb982d82f3b4dec09d1b6f4aa |
| hovercard-subject-tag | issue:1021847657 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cspotcode/node-source-map-support/31/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf037ab16daf453850a476a205c4941c34a08ec254a45712c5dbdc8b36f6492b/cspotcode/node-source-map-support/issues/31 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf037ab16daf453850a476a205c4941c34a08ec254a45712c5dbdc8b36f6492b/cspotcode/node-source-map-support/issues/31 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cspotcode |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48 |
| turbo-cache-control | no-preview |
| go-import | github.com/cspotcode/node-source-map-support git https://github.com/cspotcode/node-source-map-support.git |
| octolytics-dimension-user_id | 376504 |
| octolytics-dimension-user_login | cspotcode |
| octolytics-dimension-repository_id | 310942201 |
| octolytics-dimension-repository_nwo | cspotcode/node-source-map-support |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 310942201 |
| octolytics-dimension-repository_network_root_nwo | cspotcode/node-source-map-support |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2e8872b770cc4d5d0cc1f2026afab747a268e2ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width