chore(deps): 升级和替换依赖并更新文档
- 替换@vitejs/plugin-react-swc到@vitejs/plugin-react ^5.1.2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# React + TypeScript + Vite + Arco Design
|
||||
# React + TypeScript + Vite + Antd Design
|
||||
|
||||
# 项目运行 About 组件报错, 运行一次下面命令生成.cfg.ts 文件, 后面就可以直接用 vite 命令
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
- [React](https://react.dev/)
|
||||
- [Vite](https://cn.vitejs.dev/)
|
||||
- [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) 状态管理库
|
||||
- [dnd-kit](https://github.com/clauderic/dnd-kit) 拖拽插件
|
||||
|
||||
@@ -74,5 +74,3 @@ http://localhost:4000/
|
||||
|
||||
- useRequest(url: string, options) 参数传地址
|
||||
- useRequest2(request: any, options) 参数传请求
|
||||
|
||||
# 多语言实现 i18next
|
||||
|
||||
10
package.json
10
package.json
@@ -19,14 +19,14 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ant-design/icons": "~5.6.1",
|
||||
"antd": "^6.1.2",
|
||||
"@ant-design/icons": "^6.1.0",
|
||||
"antd": "^6.1.4",
|
||||
"big.js": "^7.0.1",
|
||||
"dayjs": "^1.11.19",
|
||||
"qs": "^6.14.0",
|
||||
"qs": "^6.14.1",
|
||||
"react": "^19.2.3",
|
||||
"react-dom": "^19.2.3",
|
||||
"valtio": "^2.2.0",
|
||||
"valtio": "^2.3.0",
|
||||
"zustand": "^5.0.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -36,7 +36,7 @@
|
||||
"@types/qs": "^6.14.0",
|
||||
"@types/react": "^19.2.7",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@vitejs/plugin-react-swc": "^4.2.2",
|
||||
"@vitejs/plugin-react": "^5.1.2",
|
||||
"globals": "^16.5.0",
|
||||
"rollup-plugin-visualizer": "^6.0.5",
|
||||
"typescript": "~5.9.3",
|
||||
|
||||
788
pnpm-lock.yaml
generated
788
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
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 { defineConfig } from 'vite';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user