diff options
author | Myles Borins <mylesborins@google.com> | 2019-10-14 20:28:42 +0300 |
---|---|---|
committer | Myles Borins <myles.borins@gmail.com> | 2019-10-23 10:32:53 +0300 |
commit | 9729c5da8a005a2707310b24274b0b14f362907c (patch) | |
tree | 40a94558490c55fa72ee95c97fb5ebf326f99875 /src/module_wrap.cc | |
parent | cfd45ebf94ffccca780e7340d863d698410e07bd (diff) |
esm: modify resolution order for specifier flag
Currently `--es-module-specifier-resolution=node` has an alternative
resolution order than the default in common.js, this causes
inconsistencies. As discussed in @nodejs/modules we want to preserve
resolution order between implementations.
PR-URL: https://github.com/nodejs/node/pull/29974
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/module_wrap.cc')
-rw-r--r-- | src/module_wrap.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc index 97e6b5453d3..e7df8688cb8 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -48,11 +48,10 @@ using v8::Undefined; using v8::Value; static const char* const EXTENSIONS[] = { - ".mjs", - ".cjs", ".js", ".json", - ".node" + ".node", + ".mjs" }; ModuleWrap::ModuleWrap(Environment* env, |