diff --git a/package.json b/package.json index 39f2542f..fb4766e7 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ }, "scripts": { "dev": "vite --host", - "build": "vue-tsc --noEmit && vite build", + "build": "vite build", "preview": "vite preview", "new": "plop --plopfile ./plop/plopfile.js", "postinstall": "husky install", diff --git a/vite.config.ts b/vite.config.ts index f458c4e2..1016080e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -76,7 +76,7 @@ export default defineConfig({ }) ], build: { - target: 'es2015', + target: 'es2020', outDir: OUTPUT_DIR, // minify: 'terser', // 如果需要用terser混淆,可打开这两行 // terserOptions: terserOptions,