Set jsx preserve in generate ts/jsconfig.json. Fixes #39202

This commit is contained in:
Matt Bierner 2017-11-27 09:54:43 -08:00
parent c08399a4f1
commit d049d540d5
2 changed files with 4 additions and 2 deletions

View file

@ -34,5 +34,6 @@
"command": "${workspaceFolder}\\scripts\\test.bat --coverage --run ${file}"
}
}
]
],
"typescript.tsdk": "node_modules/typescript/lib"
}

View file

@ -17,7 +17,8 @@ function getEmptyConfig(
) {
const compilerOptions = [
'"target": "ES6"',
'"module": "commonjs"'
'"module": "commonjs"',
'"jsx": "preserve"',
];
if (!isTypeScriptProject && config.checkJs) {
compilerOptions.push('"checkJs": true');