diff --git a/package.json b/package.json index da4ab62b..a1969a96 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 a7cb45db..a62ce9d3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -81,7 +81,7 @@ export default defineConfig({ }) ], build: { - target: 'es2015', + target: 'es2020', outDir: OUTPUT_DIR, // minify: 'terser', // 如果需要用terser混淆,可打开这两行 // terserOptions: terserOptions,