chore: change target to es6 to support more scenes

This commit is contained in:
Levi Yan
2024-07-11 10:56:59 +08:00
parent e479bf3ce6
commit 9ee41bc4aa

View File

@@ -1,9 +1,10 @@
{ {
"compilerOptions": { "compilerOptions": {
"module": "commonjs", "module": "CommonJS",
"target": "ES2022", "target": "ES6",
"lib": [ "lib": [
"ES2022" "ES6",
"DOM"
], ],
"sourceMap": true, "sourceMap": true,
"rootDir": "src", "rootDir": "src",
@@ -16,5 +17,8 @@
"outDir": "dist", /* Redirect output structure to the directory. */ "outDir": "dist", /* Redirect output structure to the directory. */
"removeComments": true, /* Do not emit comments to output. */ "removeComments": true, /* Do not emit comments to output. */
"noEmitOnError": true, /* Do not emit outputs if any errors were reported. */ "noEmitOnError": true, /* Do not emit outputs if any errors were reported. */
} },
"include": [
"**/*.ts"
],
} }