π 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
See space before
bin resolved config, and also note thatlibvalues are trimmed correctlyπ Expected behavior
Non-enum options should be whitespace-trimmed as well
Additional information about the issue
Followup for #64522 (comment)