@@ -92,20 +92,7 @@ void EnvironmentOptions::CheckOptions(std::vector<std::string>* errors) {
92
92
}
93
93
}
94
94
95
- if (!es_module_specifier_resolution.empty ()) {
96
- if (!experimental_specifier_resolution.empty ()) {
97
- errors->push_back (
98
- " bad option: cannot use --es-module-specifier-resolution"
99
- " and --experimental-specifier-resolution at the same time" );
100
- } else {
101
- experimental_specifier_resolution = es_module_specifier_resolution;
102
- if (experimental_specifier_resolution != " node" &&
103
- experimental_specifier_resolution != " explicit" ) {
104
- errors->push_back (
105
- " invalid value for --es-module-specifier-resolution" );
106
- }
107
- }
108
- } else if (!experimental_specifier_resolution.empty ()) {
95
+ if (!experimental_specifier_resolution.empty ()) {
109
96
if (experimental_specifier_resolution != " node" &&
110
97
experimental_specifier_resolution != " explicit" ) {
111
98
errors->push_back (
@@ -377,10 +364,8 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
377
364
" either 'explicit' (default) or 'node'" ,
378
365
&EnvironmentOptions::experimental_specifier_resolution,
379
366
kAllowedInEnvironment );
380
- AddOption (" --es-module-specifier-resolution" ,
381
- " " ,
382
- &EnvironmentOptions::es_module_specifier_resolution,
383
- kAllowedInEnvironment );
367
+ AddAlias (" --es-module-specifier-resolution" ,
368
+ " --experimental-specifier-resolution" );
384
369
AddOption (" --no-deprecation" ,
385
370
" silence deprecation warnings" ,
386
371
&EnvironmentOptions::no_deprecation,
0 commit comments