From 865173ec06c86ebb900c22b066dcf210f2e0452d Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 5 Sep 2021 15:04:29 +0700 Subject: all: set target compiler lib, target and module to es2015 In order to minimize dependencies with require.js, we set the "lib", "target" and "module" to es2015 and "esModuleInterop" to true to allow module importable on browser. --- tsconfig.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 654d7ac..c9ed64f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,12 +1,12 @@ { "compilerOptions": { "declaration": true, + "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "inlineSourceMap": true, + "lib": ["es2015", "dom", "es2015.promise"], + "module": "es2015", "strict": true, - "target": "ES3", - "lib": ["es5", "dom", "es2015.promise"] - }, - "$schema": "https://json.schemastore.org/tsconfig", - "display": "Recommended" + "target": "es2015" + } } -- cgit v1.3