From 892797233bec36c082c8f4a4e690b388ab3c79c4 Mon Sep 17 00:00:00 2001 From: abhijithvijayan <34790378+abhijithvijayan@users.noreply.github.com> Date: Thu, 30 Jan 2020 20:03:42 +0530 Subject: [PATCH] chore: minor tweaks to tsconfig.json --- tsconfig.json | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index b2db90a..f0e0738 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,14 +4,21 @@ "outDir": "dist", /* for manifest/index.js */ "allowJs": true, - "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'. */ + "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ + "module": "esnext", /* 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. */ + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "removeComments": true, /* Do not emit comments to output. */ "noEmit": true, /* Do not emit outputs. */ "noEmitOnError": true, + "esModuleInterop": true, + "isolatedModules": true, + /* Strict Type-Checking Options */ "strict": true, "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ @@ -38,8 +45,8 @@ ], "exclude": [ "node_modules" - ], - "awesomeTypescriptLoaderOptions": { + ], + "awesomeTypescriptLoaderOptions": { "useBabel": true, "babelCore": "@babel/core", // needed for Babel v7, "useCache": true, // Use internal file cache to improve warm-up time.