summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorBradley Farias <bradley.meck@gmail.com>2017-06-05 19:44:56 -0500
committerBradley Farias <bradley.meck@gmail.com>2017-09-07 15:18:32 -0500
commitc8a389e19f172edbada83f59944cad7cc802d9d5 (patch)
tree15a8653683a97ff0d6b2e7f08ef8081405700ea3 /node.gyp
parent46133b5beba2c780fb3b9a9d6be610d09f752182 (diff)
downloadnode-new-c8a389e19f172edbada83f59944cad7cc802d9d5.tar.gz
module: Allow runMain to be ESM
This follows the EPS an allows the node CLI to have ESM as an entry point. `node ./example.mjs`. A newer V8 is needed for `import()` so that is not included. `import.meta` is still in specification stage so that also is not included. PR-URL: https://github.com/nodejs/node/pull/14369 Author: Bradley Farias <bradley.meck@gmail.com> Author: Guy Bedford <guybedford@gmail.com> Author: Jan Krems <jan.krems@groupon.com> Author: Timothy Gu <timothygu99@gmail.com> Author: Michaƫl Zasso <targos@protonmail.com> Author: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp9
1 files changed, 9 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 14acf375e1..79d9e0a68d 100644
--- a/node.gyp
+++ b/node.gyp
@@ -91,6 +91,13 @@
'lib/internal/http.js',
'lib/internal/inspector_async_hook.js',
'lib/internal/linkedlist.js',
+ 'lib/internal/loader/Loader.js',
+ 'lib/internal/loader/ModuleMap.js',
+ 'lib/internal/loader/ModuleJob.js',
+ 'lib/internal/loader/ModuleWrap.js',
+ 'lib/internal/loader/resolveRequestUrl.js',
+ 'lib/internal/loader/search.js',
+ 'lib/internal/safe_globals.js',
'lib/internal/net.js',
'lib/internal/module.js',
'lib/internal/os.js',
@@ -177,6 +184,7 @@
'src/fs_event_wrap.cc',
'src/handle_wrap.cc',
'src/js_stream.cc',
+ 'src/module_wrap.cc',
'src/node.cc',
'src/node_api.cc',
'src/node_api.h',
@@ -230,6 +238,7 @@
'src/env-inl.h',
'src/handle_wrap.h',
'src/js_stream.h',
+ 'src/module_wrap.h',
'src/node.h',
'src/node_http2_core.h',
'src/node_http2_core-inl.h',