aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-09-05 15:04:29 +0700
committerShulhan <ms@kilabit.info>2021-09-05 15:04:29 +0700
commit865173ec06c86ebb900c22b066dcf210f2e0452d (patch)
tree0eb601516e91dd8dbcd68d206ac409e5f72849ad
parent57922f603f6acdfbd54c610279ab024c73d7650d (diff)
downloadpakakeh.ts-865173ec06c86ebb900c22b066dcf210f2e0452d.tar.xz
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.
-rw-r--r--tsconfig.json10
1 files 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"
+ }
}