From 6d0e02ee627062b5a70a9152fe5ca55a6ea679fe Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 16 Mar 2021 09:59:13 +0800 Subject: [PATCH] chore: fix ts-jest warning (#8360) --- packages/create-vant-cli-app/tsconfig.json | 2 +- packages/vant-cli/tsconfig.json | 2 +- packages/vant-markdown-vetur/tsconfig.json | 2 +- packages/vant-popperjs/tsconfig.json | 2 +- tsconfig.json | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/create-vant-cli-app/tsconfig.json b/packages/create-vant-cli-app/tsconfig.json index 83790d350..d40c806f7 100644 --- a/packages/create-vant-cli-app/tsconfig.json +++ b/packages/create-vant-cli-app/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES2017", + "target": "ES2019", "outDir": "./lib", "module": "commonjs", "strict": true, diff --git a/packages/vant-cli/tsconfig.json b/packages/vant-cli/tsconfig.json index 136f37d4e..8921c1271 100644 --- a/packages/vant-cli/tsconfig.json +++ b/packages/vant-cli/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES2017", + "target": "ES2019", "outDir": "./lib", "module": "commonjs", "strict": true, diff --git a/packages/vant-markdown-vetur/tsconfig.json b/packages/vant-markdown-vetur/tsconfig.json index 83790d350..d40c806f7 100644 --- a/packages/vant-markdown-vetur/tsconfig.json +++ b/packages/vant-markdown-vetur/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES2017", + "target": "ES2019", "outDir": "./lib", "module": "commonjs", "strict": true, diff --git a/packages/vant-popperjs/tsconfig.json b/packages/vant-popperjs/tsconfig.json index 9d288145e..3526c0d68 100644 --- a/packages/vant-popperjs/tsconfig.json +++ b/packages/vant-popperjs/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es5", + "target": "ES5", "outDir": "./dist", "module": "ES2015", "strict": true, diff --git a/tsconfig.json b/tsconfig.json index 924e6b665..6f2985f87 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,8 +2,8 @@ "compilerOptions": { "baseUrl": ".", "jsx": "preserve", - "target": "esnext", - "module": "esnext", + "target": "ES2019", + "module": "ESNext", "strict": true, "allowJs": true, "skipLibCheck": true,