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
libfolder, remove them from thebuiltinLibsarray inlib/internal/module.jsthen build it.Be aware that these modules are used in tests and benchmarks, and for example with
child_proccess, inlib/internal/v8_prof_polyfill.jsandlib/internal/cluster/master.js