From b18caadef268be252fea79295884d434da25b566 Mon Sep 17 00:00:00 2001
From: Rodney Chen <rodney.chen@hotmail.com>
Date: 星期四, 09 五月 2024 15:02:54 +0800
Subject: [PATCH] 修复不能build

---
 vite.config.ts |    4 ++++
 tsconfig.json  |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/tsconfig.json b/tsconfig.json
index 9472c20..2f861fc 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -2,6 +2,7 @@
   "$schema": "https://json.schemastore.org/tsconfig",
   "extends": "@vben/ts-config/vue-app.json",
   "compilerOptions": {
+    "target": "ES2020",
     "baseUrl": ".",
     "types": ["vite/client", "unplugin-vue-define-options/macros-global"],
     "paths": {
diff --git a/vite.config.ts b/vite.config.ts
index a27056b..bd04e0d 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -4,6 +4,9 @@
 export default defineApplicationConfig({
   overrides: {
     optimizeDeps: {
+      esbuildOptions: {
+        target: 'esnext',
+      },
       include: [
         'echarts/core',
         'echarts/charts',
@@ -41,6 +44,7 @@
       }),
     ],
     build: {
+      target: 'esnext',
       rollupOptions: {
         output: {
           manualChunks: {

--
Gitblit v1.9.3