File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -403,3 +403,26 @@ and [user guide](https://openssl.org/docs/fips/UserGuide-2.0.pdf).
403403 ` /usr/local/ssl/fips-2.0 `
4044048 . Build Node.js with ` make -j `
4054059 . Verify with ` node -p "process.versions.openssl" ` (for example ` 1.0.2a-fips ` )
406+
407+ ## Building Node.js with external core modules
408+
409+ It is possible to specify one or more JavaScript text files to be bundled in
410+ the binary as builtin modules when building Node.js.
411+
412+ ### Unix / macOS
413+
414+ This command will make ` /root/myModule.js ` available via
415+ ` require('/root/myModule') ` and ` ./myModule2.js ` available via
416+ ` require('myModule2') ` .
417+
418+ ``` console
419+ $ ./configure --link-module ' /root/myModule.js' --link-module ' ./myModule2.js'
420+ ```
421+
422+ ### Windows
423+
424+ To make ` ./myCustomModule.js ` available via ` require('myCustomModule') ` .
425+
426+ ``` console
427+ > .\v cbuild link-module ' ./myCustomModule.js'
428+ ```
You can’t perform that action at this time.
0 commit comments