refactor: change ts options for browser build

This commit is contained in:
abhijithvijayan
2020-01-17 04:32:38 +05:30
parent 8c362de82f
commit e4a11beab5

View File

@@ -1,27 +1,37 @@
{
"compilerOptions": {
/* Basic Options */
"outDir": "dist",
"target": "es2017", // Node.js 8
"module": "commonjs",
"target": "ES2015", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"module": "es6", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"jsx": "react",
"lib": ["dom", "es6"], /* Specify library files to be included in the compilation. */
"removeComments": true, /* Do not emit comments to output. */
"noEmit": true, /* Do not emit outputs. */
"noEmitOnError": true,
/* Strict Type-Checking Options */
"strict": true,
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
/* Additional Checks */
"noUnusedParameters": true, /* Report errors on unused parameters. */
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"useDefineForClassFields": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
/* Module Resolution Options */
"moduleResolution": "node",
"resolveJsonModule": true,
"jsx": "react",
"declaration": true,
"pretty": true,
"newLine": "lf",
"stripInternal": true,
"strict": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noEmitOnError": true,
"useDefineForClassFields": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true
},
"include": [
"src/**/*.ts"
"src/**/*.ts", "src/manifest/index.js"
],
"exclude": [
"node_modules"