When using the Modules Customization Hooks API to load CommonJS modules, we want to support the returned value of `defaultLoad` which must be nullish to preserve backward compatibility. This can be achieved by fetching the source from the translator. PR-URL: https://github.com/nodejs/node/pull/50825 Fixes: https://github.com/nodejs/node/issues/50435 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Jacob Smith <jacob@frende.me> |
||
|---|---|---|
| .. | ||
| cjs | ||
| esm | ||
| helpers.js | ||
| package_json_reader.js | ||
| run_main.js | ||