I want to build a specific nodejs as a static library without some internal module like child_process
dns
etc.
Is there a configurable way to go about this?
I want to build a specific nodejs as a static library without some internal module like child_process
dns
etc.
Is there a configurable way to go about this?
Copyright © 2021 Jogjafile Inc.
Remove the modules you don't want from node.gyp, remove the .js files from the
lib
folder, remove them from thebuiltinLibs
array inlib/internal/module.js
then build it.Be aware that these modules are used in tests and benchmarks, and for example with
child_proccess
, inlib/internal/v8_prof_polyfill.js
andlib/internal/cluster/master.js