chore(deps): 升级和替换依赖并更新文档

- 替换@vitejs/plugin-react-swc到@vitejs/plugin-react ^5.1.2
This commit is contained in:
zhengw
2026-01-06 14:10:24 +08:00
parent fcb43c0cbd
commit 0730d6feb7
4 changed files with 517 additions and 289 deletions

View File

@@ -1,4 +1,4 @@
# React + TypeScript + Vite + Arco Design # React + TypeScript + Vite + Antd Design
# 项目运行 About 组件报错, 运行一次下面命令生成.cfg.ts 文件, 后面就可以直接用 vite 命令 # 项目运行 About 组件报错, 运行一次下面命令生成.cfg.ts 文件, 后面就可以直接用 vite 命令
@@ -15,7 +15,7 @@
- [React](https://react.dev/) - [React](https://react.dev/)
- [Vite](https://cn.vitejs.dev/) - [Vite](https://cn.vitejs.dev/)
- [TypeScript](https://www.typescriptlang.org/zh/) - [TypeScript](https://www.typescriptlang.org/zh/)
- [Ant Design](https://ant-design.antgroup.com/components/overview-cn/) UI 库 - [Antd Design](https://ant-design.antgroup.com/index-cn/) UI 库
- [zustand](https://github.com/pmndrs/zustand) 状态管理库 - [zustand](https://github.com/pmndrs/zustand) 状态管理库
- [dnd-kit](https://github.com/clauderic/dnd-kit) 拖拽插件 - [dnd-kit](https://github.com/clauderic/dnd-kit) 拖拽插件
@@ -74,5 +74,3 @@ http://localhost:4000/
- useRequest(url: string, options) 参数传地址 - useRequest(url: string, options) 参数传地址
- useRequest2(request: any, options) 参数传请求 - useRequest2(request: any, options) 参数传请求
# 多语言实现 i18next

View File

@@ -19,14 +19,14 @@
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"@ant-design/icons": "~5.6.1", "@ant-design/icons": "^6.1.0",
"antd": "^6.1.2", "antd": "^6.1.4",
"big.js": "^7.0.1", "big.js": "^7.0.1",
"dayjs": "^1.11.19", "dayjs": "^1.11.19",
"qs": "^6.14.0", "qs": "^6.14.1",
"react": "^19.2.3", "react": "^19.2.3",
"react-dom": "^19.2.3", "react-dom": "^19.2.3",
"valtio": "^2.2.0", "valtio": "^2.3.0",
"zustand": "^5.0.9" "zustand": "^5.0.9"
}, },
"devDependencies": { "devDependencies": {
@@ -36,7 +36,7 @@
"@types/qs": "^6.14.0", "@types/qs": "^6.14.0",
"@types/react": "^19.2.7", "@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@vitejs/plugin-react-swc": "^4.2.2", "@vitejs/plugin-react": "^5.1.2",
"globals": "^16.5.0", "globals": "^16.5.0",
"rollup-plugin-visualizer": "^6.0.5", "rollup-plugin-visualizer": "^6.0.5",
"typescript": "~5.9.3", "typescript": "~5.9.3",

788
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
import path from 'node:path'; import path from 'node:path';
import react from '@vitejs/plugin-react-swc'; import react from '@vitejs/plugin-react';
// import { visualizer } from 'rollup-plugin-visualizer'; // import { visualizer } from 'rollup-plugin-visualizer';
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';