Browse Source

feat(ts) update TypeScript targets

dev0
Saúl Ibarra Corretgé 6 months ago
parent
commit
6d9e3c0e47
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      tsconfig.json

+ 5
- 4
tsconfig.json View File

1
 {
1
 {
2
   "compilerOptions": {
2
   "compilerOptions": {
3
-    "target": "es6",
4
-    "module": "es6",
3
+    "target": "ES2020",
4
+    "module": "ES2020",
5
     "sourceMap": true,
5
     "sourceMap": true,
6
     "allowJs": true,
6
     "allowJs": true,
7
     "skipLibCheck": true,
7
     "skipLibCheck": true,
9
     "moduleResolution": "node",
9
     "moduleResolution": "node",
10
     "allowSyntheticDefaultImports": true,
10
     "allowSyntheticDefaultImports": true,
11
     "lib": [
11
     "lib": [
12
-      "esnext",
13
-      "dom"
12
+      "DOM",
13
+      "ES2021",
14
+      "ES2024.Promise"
14
     ],
15
     ],
15
     "outDir": "dist/esm/",
16
     "outDir": "dist/esm/",
16
   },
17
   },

Loading…
Cancel
Save