node/lib/internal/main
Joyee Cheung f9fb7f6d96 build: add --node-snapshot-main configure option
This adds a --build-snapshot runtime option which is currently only
supported by the node_mksnapshot binary, and a --node-snapshot-main
configure option that makes use it to run a custom script when
building the embedded snapshot. The idea is to have this experimental
feature in core as a configure-time feature for now, and investigate
the renaming V8 bugs before we make it available to more users via
making it a runtime option.

PR-URL: https://github.com/nodejs/node/pull/42466
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2022-04-06 12:25:48 -05:00
..
.eslintrc.yaml
check_syntax.js esm: support https remotely and http locally under flag 2022-02-21 00:37:31 -05:00
eval_stdin.js lib: use getOptionValue instead of process underscore aliases 2019-04-20 00:20:37 +08:00
eval_string.js lib,repl: ignore non-canBeRequiredByUsers built-in 2021-09-07 10:51:56 +08:00
inspect.js debugger: rename internal module 2021-07-15 17:19:07 -07:00
mksnapshot.js build: add --node-snapshot-main configure option 2022-04-06 12:25:48 -05:00
print_help.js src: allow to negate boolean CLI flags 2021-06-21 20:18:20 +02:00
prof_process.js process: call prepareMainThreadExecution in all main thread scripts 2019-03-08 13:57:36 +01:00
repl.js repl: support --loader option in builtin REPL 2020-07-14 15:21:26 +02:00
run_main_module.js module: reduce circular dependency of internal/modules/cjs/loader 2019-11-19 13:43:59 +01:00
worker_thread.js worker: fix typo in debug statement 2022-02-22 11:38:55 -05:00