- Recording: https://www.youtube.com/watch?v=jh37GJZazz0
- GitHub Issue: #88
- Loaders team: @nodejs/loaders
- Geoffrey Booth: @GeoffreyBooth
- Guy Bedford: @guybedford
- Bradley Farias: @bmeck
- Jacob Smith: @JakobJingleheimer
- #89: Proposal for
preImporthook
Moving loaders off-thread might let us preserve an async resolve hook, with an import.meta.resolve that will appear to user code to be synchronous (can be called without await).
-
Revert the PR that changed our loader
resolvehook andimport.meta.resolveto become sync, with a note that the PR will go back in if we discover that we can’t keep our asyncresolvehook with sync-lookingimport.meta.resolvevia moving loaders off-thread. (Or if we discover that we can’t move loaders off-thread after all.) -
Close the
preImportPR for now, as we won’t need it if we can preserve the asyncresolve. -
Work on moving loaders off thread. Confirm that we can keep the async
resolvehook. If we succeed, we’re done and we can move on without reviving the old syncresolveandpreImportPRs.