Skip to content

Commit

Permalink
module: refator ESM loader for adding future synchronous hooks
Browse files Browse the repository at this point in the history
This lays the foundation for supporting synchronous hooks proposed
in nodejs/loaders#198 for ESM. In addition
this corrects and adds several JSDoc comments for internal functions
of the ESM loader, as well as explaining how require() for
import CJS work in the special resolve/load paths. This doesn't
consolidate it with import in require(esm) yet due to caching
differences, which is left as a TODO.
  • Loading branch information
joyeecheung committed Sep 4, 2024
1 parent 70de19e commit 8df4528
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 145 deletions.
Loading

0 comments on commit 8df4528

Please sign in to comment.