diff options
author | Myles Borins <mylesborins@google.com> | 2019-11-27 09:54:23 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2019-12-05 00:21:41 +0300 |
commit | ee953d813be1fb19930e0e64196c0aa33699b133 (patch) | |
tree | 2b11d0315bcbb33ee26ad333a798ff012da696fa /src/module_wrap.cc | |
parent | 12254ce242c30d403b523ad9adb60a0280080957 (diff) |
esm: make specifier flag clearly experimental
`--es-module-specifier-resolution` is the only flagged portion of the
ESM implementation that does not have the word experimental in the flag
name. This commit changes the flag to:
`--experimental-specifier-resolution`
`--es-module-specifier-resolution` remains as an alias for backwards
compatibility but it is no longer documented.
PR-URL: https://github.com/nodejs/node/pull/30678
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Diffstat (limited to 'src/module_wrap.cc')
-rw-r--r-- | src/module_wrap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc index 5745cce9e09..3c3d5683292 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -789,7 +789,7 @@ inline Maybe<URL> ResolveIndex(const URL& search) { Maybe<URL> FinalizeResolution(Environment* env, const URL& resolved, const URL& base) { - if (env->options()->es_module_specifier_resolution == "node") { + if (env->options()->experimental_specifier_resolution == "node") { Maybe<URL> file = ResolveExtensions<TRY_EXACT_NAME>(resolved); if (!file.IsNothing()) { return file; @@ -1053,7 +1053,7 @@ Maybe<URL> PackageMainResolve(Environment* env, return Just(resolved); } } - if (env->options()->es_module_specifier_resolution == "node") { + if (env->options()->experimental_specifier_resolution == "node") { if (pcfg.has_main == HasMain::Yes) { return FinalizeResolution(env, URL(pcfg.main, pjson_url), base); } else { |