Files
node/lib
Joyee Cheung 3ac5b49d85 module: refator ESM loader for adding future synchronous hooks
This lays the foundation for supporting synchronous hooks proposed
in https://github.com/nodejs/loaders/pull/198 for ESM.

- 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.
- The moduleProvider passed into ModuleJob is replaced as
  moduleOrModulePromise, we call the translators directly in the
  ESM loader and verify it right after loading for clarity.
- Reuse a few refactored out helpers for require(esm) in
  getModuleJobForRequire().

PR-URL: https://github.com/nodejs/node/pull/54769
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2024-09-17 18:38:33 +00:00
..
2024-07-08 15:55:43 +00:00
2024-09-11 14:46:30 +00:00
2024-09-14 14:56:31 +00:00
2024-05-30 09:07:17 -04:00
2024-07-07 00:56:04 +00:00
2024-09-04 19:47:25 +00:00
2024-07-04 16:19:36 +00:00
2024-09-14 22:36:24 +08:00