[ts] put JSX support in root tsconfig file (#19359) (#19365)

This commit is contained in:
Spencer 2018-05-23 13:15:36 -07:00 committed by GitHub
parent 5f540e6a91
commit 3d1441ab12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 1 deletions

View file

@ -231,6 +231,8 @@
"@types/glob": "^5.0.35",
"@types/listr": "^0.13.0",
"@types/minimatch": "^2.0.29",
"@types/react": "^16.3.14",
"@types/react-dom": "^16.0.5",
"angular-mocks": "1.4.7",
"babel-eslint": "8.1.2",
"babel-jest": "^22.4.3",

View file

@ -281,7 +281,6 @@ export default class BaseOptimizer {
experimentalWatchApi: true,
onlyCompileBundledFiles: true,
compilerOptions: {
jsx: 'react',
sourceMap: Boolean(this.sourceMaps),
target: 'es5',
module: 'esnext',

View file

@ -2,6 +2,9 @@
"compilerOptions": {
"baseUrl": ".",
// Support .tsx files and transform JSX into calls to React.createElement
"jsx": "react",
// Enables all strict type checking options.
"strict": true,

View file

@ -324,6 +324,19 @@
dependencies:
"@types/retry" "*"
"@types/react-dom@^16.0.5":
version "16.0.5"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.0.5.tgz#a757457662e3819409229e8f86795ff37b371f96"
dependencies:
"@types/node" "*"
"@types/react" "*"
"@types/react@*", "@types/react@^16.3.14":
version "16.3.14"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.3.14.tgz#f90ac6834de172e13ecca430dcb6814744225d36"
dependencies:
csstype "^2.2.0"
"@types/retry@*", "@types/retry@^0.10.2":
version "0.10.2"
resolved "https://registry.yarnpkg.com/@types/retry/-/retry-0.10.2.tgz#bd1740c4ad51966609b058803ee6874577848b37"
@ -3215,6 +3228,10 @@ cssom@0.3.x, "cssom@>= 0.3.0 < 0.4.0", "cssom@>= 0.3.2 < 0.4.0":
dependencies:
cssom "0.3.x"
csstype@^2.2.0:
version "2.5.2"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.5.2.tgz#4534308476ceede8fbe148b9b99f9baf1c80fa06"
currently-unhandled@^0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea"