chore: 升级依赖与工程配置
This commit is contained in:
@@ -21,28 +21,37 @@
|
||||
"@dnd-kit/core": "^6.3.1",
|
||||
"@dnd-kit/sortable": "^10.0.0",
|
||||
"@dnd-kit/utilities": "^3.2.2",
|
||||
"@rc-component/upload": "^1.1.1",
|
||||
"@tanstack/react-query": "^5.101.4",
|
||||
"antd": "^6.3.6",
|
||||
"axios": "^1.15.1",
|
||||
"dayjs": "^1.11.20",
|
||||
"echarts": "^6.0.0",
|
||||
"echarts-for-react": "^3.0.6",
|
||||
"lucide-react": "^0.468.0",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"file-saver": "^2.0.5",
|
||||
"mermaid": "^11.16.0",
|
||||
"react": "^19.2.5",
|
||||
"react-dom": "^19.2.5",
|
||||
"react-router-dom": "^7.14.1",
|
||||
"tslib": "^2.8.1",
|
||||
"react-router": "^8.3.0",
|
||||
"use-immer": "^0.11.0",
|
||||
"usehooks-ts": "^3.1.1",
|
||||
"zod": "^4.4.3",
|
||||
"zustand": "^5.0.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gongxue/typescript-config": "*",
|
||||
"@tanstack/react-query-devtools": "^5.101.4",
|
||||
"@types/file-saver": "^2.0.7",
|
||||
"@types/node": "^24.12.2",
|
||||
"@types/react": "^19.2.14",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@types/react-syntax-highlighter": "^15.5.13",
|
||||
"@vitejs/plugin-react": "^6.0.1",
|
||||
"@vitest/browser": "^4.1.10",
|
||||
"@vitest/browser-playwright": "^4.1.10",
|
||||
"@vitest/coverage-v8": "^4.1.10",
|
||||
"playwright": "^1.61.1",
|
||||
"rollup-plugin-visualizer": "^7.0.1",
|
||||
"typescript": "~6.0.2",
|
||||
"vite": "^8.0.9",
|
||||
"vitest": "^4.1.10"
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 343 B |
@@ -1,9 +1,15 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { visualizer } from 'rollup-plugin-visualizer';
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
plugins: [
|
||||
react(),
|
||||
...(process.env.BUNDLE_VISUALIZE
|
||||
? [visualizer({ filename: 'dist/stats.json', template: 'raw-data', gzipSize: true })]
|
||||
: []),
|
||||
],
|
||||
server: {
|
||||
port: 3002,
|
||||
proxy: {
|
||||
|
||||
@@ -6,7 +6,7 @@ import { playwright } from '@vitest/browser-playwright';
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
optimizeDeps: {
|
||||
include: ['react', 'react-dom', 'react-dom/client', 'react-router-dom'],
|
||||
include: ['react', 'react-dom', 'react-dom/client', 'react-router'],
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
@@ -37,7 +37,6 @@ export default defineConfig({
|
||||
include: ['src/**/*.{ts,tsx}'],
|
||||
exclude: ['src/**/*.test.*', 'src/**/*.spec.*'],
|
||||
},
|
||||
// Setup file for global test helpers
|
||||
setupFiles: ['./src/test/setup.ts'],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user