-
Notifications
You must be signed in to change notification settings - Fork 146
Compile Node
John-David Dalton edited this page Mar 29, 2019
·
1 revision
-
Clone the Node repository
git clone --depth=1 https://github.com/nodejs/node
-
Perform the following code modifications (see commit)
- Copy
esm.js
andesm/
fromesm
tolib/internal/
- Add file paths to
library_files
innode.gyp
'lib/internal/esm.js', 'lib/internal/esm/loader.js',
- Require
internal/esm
before loadingpreloadModules
inlib/internal/bootstrap/pre_execution.js
require('internal/esm');
- Copy
-
Build Node in the repository (with Ninja)
./configure --ninja && ninja -C out/Release
-
Enjoy your Node build at
out/Release/node