Skip to content

Commit 3577c36

Browse files
committed
chore: support vite7
1 parent 112fac0 commit 3577c36

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ MobVue is a well-crafted mobile web app template, built with popular technologie
2828

2929
<br>
3030

31-
- Latest version of `Visual Studio Code`
31+
- Latest version of `Visual Studio Code` or AI IDE `Cursor` and `Trae`
3232
- Install the recommended plugins in the `.vscode/extensions.json` file
33-
- `node` 20.x or 22+
34-
- `pnpm` 9.x or 10+
33+
- `node` 20.19+ or 22.12+
34+
- `pnpm` 10+
3535
- `bun` latest
3636

3737
</details>

README.zh-CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ MobVue 是一个精心制作的移动端 H5 模板,基于 Vue3、Vite、TypeSc
2828

2929
<br>
3030

31-
- 新版 `Visual Studio Code`
31+
- 新版 `Visual Studio Code` 或者 AI IDE `Cursor``Trae`
3232
- 安装 `.vscode/extensions.json` 文件中推荐的插件
33-
- `node` 20.x 或 22+
34-
- `pnpm` 9.x 或 10+
33+
- `node` 20.19+ 或 22.12+
34+
- `pnpm` 10+
3535
- `bun` 最新的
3636

3737
</details>

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export default defineConfig(({ mode }) => {
5858
},
5959
// 构建配置
6060
build: {
61+
// 浏览器兼容性
62+
target: "es2015",
6163
// 自定义底层的 Rollup 打包配置
6264
rollupOptions: {
6365
output: {

0 commit comments

Comments
 (0)