tongshangming 1 anno fa
parent
commit
4a6c573557
3 ha cambiato i file con 302 aggiunte e 291 eliminazioni
  1. 27 27
      package.json
  2. 264 261
      pnpm-lock.yaml
  3. 11 3
      vite.config.ts

+ 27 - 27
package.json

@@ -15,55 +15,55 @@
   },
   "dependencies": {
     "@element-plus/icons-vue": "^2.3.1",
-    "@fskj-admin/core": "^1.2.10",
+    "@fskj-admin/core": "^1.2.12",
     "@fskj-admin/micro": "^0.1.0",
     "@icon-park/vue-next": "^1.4.2",
-    "@sentry/vue": "^7.114.0",
-    "@vueuse/core": "^10.7.1",
+    "@sentry/vue": "^8.3.0",
+    "@vueuse/core": "^10.9.0",
     "@wangeditor/editor": "^5.1.23",
     "@wangeditor/editor-for-vue": "^5.1.12",
-    "axios": "^1.6.4",
-    "dayjs": "^1.11.10",
-    "element-plus": "^2.6.2",
+    "axios": "^1.7.2",
+    "dayjs": "^1.11.11",
+    "element-plus": "^2.7.3",
     "nprogress": "^0.2.0",
     "pinia": "^2.1.7",
     "splitpanes": "^3.1.5",
-    "vue": "^3.4.5",
-    "vue-cropper": "^1.1.1",
-    "vue-router": "^4.2.5",
-    "vxe-table": "^4.5.17",
+    "vue": "^3.4.27",
+    "vue-cropper": "^1.1.3",
+    "vue-router": "^4.3.2",
+    "vxe-table": "^4.6.16",
     "wujie-vue3": "^1.0.22",
-    "xe-utils": "^3.5.14"
+    "xe-utils": "^3.5.26"
   },
   "devDependencies": {
-    "@iconify-json/ep": "^1.1.14",
-    "@rushstack/eslint-patch": "^1.6.1",
+    "@iconify-json/ep": "^1.1.15",
+    "@rushstack/eslint-patch": "^1.10.3",
     "@sentry/vite-plugin": "^2.16.1",
-    "@tsconfig/node18": "^18.2.2",
-    "@types/node": "^20.10.6",
+    "@tsconfig/node18": "^18.2.4",
+    "@types/node": "^20.12.12",
     "@types/nprogress": "^0.2.3",
-    "@types/qs": "^6.9.11",
-    "@vitejs/plugin-vue": "^5.0.2",
+    "@types/qs": "^6.9.15",
+    "@vitejs/plugin-vue": "^5.0.4",
     "@vitejs/plugin-vue-jsx": "^3.1.0",
     "@vue/eslint-config-prettier": "^9.0.0",
     "@vue/eslint-config-typescript": "^12.0.0",
     "@vue/tsconfig": "^0.5.1",
-    "eslint": "^8.56.0",
-    "eslint-plugin-vue": "^9.19.2",
+    "eslint": "^8.57.0",
+    "eslint-plugin-vue": "^9.26.0",
     "npm-run-all": "^4.1.5",
     "plop": "^4.0.1",
-    "prettier": "^3.1.1",
-    "sass": "^1.69.7",
+    "prettier": "^3.2.5",
+    "sass": "^1.77.2",
     "typescript": "~5.3.3",
-    "unocss": "^0.58.3",
-    "unplugin-auto-import": "^0.17.3",
-    "unplugin-icons": "^0.18.1",
+    "unocss": "^0.60.3",
+    "unplugin-auto-import": "^0.17.6",
+    "unplugin-icons": "^0.19.0",
     "unplugin-vue-components": "^0.26.0",
-    "unplugin-vue-define-options": "^1.4.1",
-    "vite": "^5.0.10",
+    "unplugin-vue-define-options": "^1.4.4",
+    "vite": "^5.2.11",
     "vite-plugin-style-import": "^2.0.0",
     "vite-plugin-svg-icons": "^2.0.1",
-    "vite-plugin-vue-devtools": "^7.0.5",
+    "vite-plugin-vue-devtools": "^7.2.1",
     "vue-tsc": "^1.8.27"
   }
 }

File diff suppressed because it is too large
+ 264 - 261
pnpm-lock.yaml


+ 11 - 3
vite.config.ts

@@ -1,7 +1,7 @@
 import { fileURLToPath, URL } from 'node:url'
 import path from 'path'
 
-import { defineConfig, loadEnv, splitVendorChunkPlugin } from 'vite'
+import { defineConfig, loadEnv } from 'vite'
 import vue from '@vitejs/plugin-vue'
 import vueJsx from '@vitejs/plugin-vue-jsx'
 import AutoImport from 'unplugin-auto-import/vite'
@@ -38,7 +38,6 @@ export default defineConfig(({ mode }) => {
       createStyleImportPlugin({
         resolves: [VxeTableResolve()]
       }),
-      splitVendorChunkPlugin(),
       mode === 'production' && env.VITE_SENTRY_DSN
         ? sentryVitePlugin({
             org: env.VITE_SENTRY_ORG,
@@ -71,7 +70,16 @@ export default defineConfig(({ mode }) => {
       }
     },
     build: {
-      sourcemap: !!env.VITE_SENTRY_DSN
+      sourcemap: !!env.VITE_SENTRY_DSN,
+      rollupOptions: {
+        output: {
+          manualChunks: (id) => {
+            if (id.includes('node_modules')) {
+              return 'vender'
+            }
+          }     
+        }
+      }
     }
   }
 })

Some files were not shown because too many files changed in this diff