🔎 Search Terms
CLI, compilerOptions, whitespace, comma
🕗 Version & Regression Information
Checked on the latest main
⏯ Playground Link
No response
💻 Code
> npx tsc --showConfig --customConditions "a, b" --types "a, b" --typeRoots "a, b" --moduleSuffixes "a, b" --excludeDirectories "a, b" --excludeFiles "a, b" --lib "es2015, dom" index.ts
🙁 Actual behavior
{
"compilerOptions": {
"customConditions": [
"a",
" b"
],
"lib": [
"es6",
"dom"
],
"moduleSuffixes": [
"a",
" b"
],
"typeRoots": [
"./a",
"./ b"
],
"types": [
"a",
" b"
]
},
"files": [
"./index.ts"
]
}
See space before b in resolved config, and also note that lib values are trimmed correctly
🙂 Expected behavior
{
"compilerOptions": {
"customConditions": [
"a",
"b"
],
"lib": [
"es6",
"dom"
],
"moduleSuffixes": [
"a",
"b"
],
"typeRoots": [
"./a",
"./b"
],
"types": [
"a",
"b"
]
},
"files": [
"./index.ts"
]
}
Non-enum options should be whitespace-trimmed as well
Additional information about the issue
Followup for #64522 (comment)
🔎 Search Terms
CLI, compilerOptions, whitespace, comma
🕗 Version & Regression Information
Checked on the latest main
⏯ Playground Link
No response
💻 Code
🙁 Actual behavior
{ "compilerOptions": { "customConditions": [ "a", " b" ], "lib": [ "es6", "dom" ], "moduleSuffixes": [ "a", " b" ], "typeRoots": [ "./a", "./ b" ], "types": [ "a", " b" ] }, "files": [ "./index.ts" ] }See space before b in resolved config, and also note that lib values are trimmed correctly
🙂 Expected behavior
{ "compilerOptions": { "customConditions": [ "a", "b" ], "lib": [ "es6", "dom" ], "moduleSuffixes": [ "a", "b" ], "typeRoots": [ "./a", "./b" ], "types": [ "a", "b" ] }, "files": [ "./index.ts" ] }Non-enum options should be whitespace-trimmed as well
Additional information about the issue
Followup for #64522 (comment)