mirror of
https://github.com/nodejs/node.git
synced 2025-05-22 16:07:07 +00:00
![]() This patch: - Builds the set of modules that can be required by users with/without the `node:` prefix at snapshot building time. We only modify it when `--expose-internals` but the default set is now in the snapshot. At run time the CJS module loader only creates a frozen array out of it. - `BuiltinModule.canBeRequiredWithoutScheme()` is now enough to determine if an id can be required without `node:` without an additional call to `BuiltinModule.canBeRequiredByUsers()` - Replace the pending-to-deprecate methods on `Module` with an internal implementation that only queries the CLI flags when being invoked. So we can install these methods in the snapshot. PR-URL: https://github.com/nodejs/node/pull/47194 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> |
||
---|---|---|
.. | ||
assert.js | ||
create_dynamic_module.js | ||
fetch_module.js | ||
formats.js | ||
get_format.js | ||
handle_process_exit.js | ||
hooks.js | ||
initialize_import_meta.js | ||
load.js | ||
loader.js | ||
module_job.js | ||
module_map.js | ||
package_config.js | ||
resolve.js | ||
translators.js | ||
utils.js |