mirror of
https://github.com/HackPlan/polaris-react.git
synced 2026-04-29 17:55:57 +08:00
This doesn't change the build output now. Prior to this change TS would always output polyfills for es2017 features. By targeting es2017 TS will leave es2017 features untouched and then babel shall use babel-preset-env to polyfill them based upon our browser support (as defined in browserslist in package.json)
30 lines
713 B
JSON
30 lines
713 B
JSON
{
|
|
"compilerOptions": {
|
|
"baseUrl": "./src",
|
|
"rootDir": "./",
|
|
"target": "es2017",
|
|
"module": "es2015",
|
|
"moduleResolution": "node",
|
|
"resolveJsonModule": true,
|
|
"declaration": true,
|
|
"declarationDir": "types",
|
|
"jsx": "react-native",
|
|
"strictNullChecks": true,
|
|
"noImplicitAny": true,
|
|
"experimentalDecorators": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"noUnusedParameters": true,
|
|
"noUnusedLocals": true,
|
|
"noEmitHelpers": true,
|
|
"importHelpers": true,
|
|
"lib": [
|
|
"dom",
|
|
"dom.iterable",
|
|
"es2017",
|
|
"esnext.asynciterable",
|
|
"scripthost"
|
|
]
|
|
},
|
|
"include": ["./config/typescript/**/*", "./src/**/*", "./package.json"]
|
|
}
|