Replies: 0 comments 4 replies
-
|
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.
-
|
Wouldn't the |
Beta Was this translation helpful? Give feedback.
-
|
Hi |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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.jsfiles.How I checked compilation done by
JS2C. But have we possibility to avoid this and build this modules like typical.jsfiles and use it?Maybe someone did it, or I can't see some build options...
Beta Was this translation helpful? Give feedback.
All reactions