Accept new moduleResolution options on commandline (#46239)

This commit is contained in:
Wesley Wigham
2021-10-06 13:17:27 -07:00
committed by GitHub
parent cb158e7eb6
commit ed9c522fd6
34 changed files with 587 additions and 1 deletions

View File

@@ -117,6 +117,7 @@ namespace Harness {
class CompilerTest {
private static varyBy: readonly string[] = [
"module",
"moduleResolution",
"target",
"jsx",
"removeComments",

View File

@@ -237,7 +237,7 @@ namespace ts {
start: undefined,
length: undefined,
}, {
messageText: "Argument for '--moduleResolution' option must be: 'node', 'classic'.",
messageText: "Argument for '--moduleResolution' option must be: 'node', 'classic', 'node12', 'nodenext'.",
category: Diagnostics.Argument_for_0_option_must_be_Colon_1.category,
code: Diagnostics.Argument_for_0_option_must_be_Colon_1.code,