Replies: 1 comment 1 reply
-
Yes, it is technically possible, but it would require significant modifications to Node.js. The built-in modules (like node:path, node:stream, etc.) are compiled into Node.js using JS2C, which converts JavaScript source files into C++ headers for performance reasons. If you want to use these modules as regular .js files instead of being compiled into the binary, you would need to: Extract the original JavaScript source files from the Node.js repository. Have you explored any existing build options, or are you looking for a custom solution? |
Beta Was this translation helpful? Give feedback.
-
Hi, I have a question. It is possible to build Node.js without compilation builtin module (like
node:path
,node:stream
, etc.) in binary format? I wanna have node.js with "std" modules in.js
files.How I checked compilation done by
JS2C
. But have we possibility to avoid this and build this modules like typical.js
files and use it?Maybe someone did it, or I can't see some build options...
Beta Was this translation helpful? Give feedback.
All reactions