node/lib/internal/modules
Joyee Cheung d181b76374
bootstrap: make CJS loader snapshotable
This patch makes the top-level access to runtime states in the
CJS loader lazy, and move the side-effects into a
initializeCJS() function that gets called during pre-execution.
As a result the CJS loader can be included into the built-in
snapshot.

PR-URL: https://github.com/nodejs/node/pull/45849
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2023-01-01 10:44:49 +00:00
..
cjs bootstrap: make CJS loader snapshotable 2023-01-01 10:44:49 +00:00
esm modules: move callbacks and conditions into modules/esm/utils.js 2023-01-01 10:44:49 +00:00
helpers.js bootstrap: make CJS loader snapshotable 2023-01-01 10:44:49 +00:00
package_json_reader.js
run_main.js lib: lazy-load deps in modules/run_main.js 2023-01-01 10:44:49 +00:00