这是indexloc提供的服务,不要输入任何密码
Skip to content

Update vite documentation to latest version #10715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/site/content/docs/guides/frameworks/vite.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import { Callout } from '#components/callout';

[Vite](https://vitejs.dev/) is a build tool that aims to provide a faster and leaner development experience for modern web projects.

<Callout type="info">
Vite 7.0 requires Node.js 20.19+ or 22.12+. Make sure your development environment meets these requirements before getting started.
</Callout>

## Quickstart

To get started with Vite in a Turborepo quickly, use [the `with-vite` example](https://github.com/vercel/turborepo/tree/main/examples/with-vite):
Expand Down
4 changes: 4 additions & 0 deletions docs/site/content/docs/guides/tools/vitest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import { Tab, Tabs } from '#components/tabs';

[Vitest](https://vitest.dev/) is a test runner from the Vite ecosystem. Integrating it with Turborepo will lead to enormous speed-ups.

<Callout type="info">
For Vite 7.0 users, ensure you're using Vitest 3.2+ for full compatibility.
</Callout>

[The Vitest documentation](https://vitest.dev/guide/workspace) shows how to create a "Vitest Projects" configuration that runs all tests in the monorepo from one root command, enabling behavior like merged coverage reports out-of-the-box. This feature doesn't follow modern best practices for monorepos, since its designed for compatibility with Jest (whose Workspace feature was built before [package manager Workspaces](/docs/crafting-your-repository/structuring-a-repository)).

<Callout type="warning">
Expand Down
4 changes: 2 additions & 2 deletions examples/design-system/apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"@storybook/addon-links": "^8.2.6",
"@storybook/react": "^8.2.6",
"@storybook/react-vite": "^8.2.6",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react": "^5.0.0",
"eslint": "^8.57.0",
"serve": "^14.2.1",
"storybook": "^8.2.6",
"@repo/typescript-config": "workspace:*",
"typescript": "5.5.4",
"vite": "^5.1.4"
"vite": "^7.0.0"
}
}
4 changes: 2 additions & 2 deletions examples/kitchen-sink/apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"@repo/typescript-config": "workspace:*",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@vitejs/plugin-react": "^4.7.0",
"@vitejs/plugin-react": "^5.0.0",
"eslint": "^9.31.0",
"typescript": "5.8.2",
"vite": "^5.4.14"
"vite": "^7.0.0"
}
}
2 changes: 1 addition & 1 deletion examples/kitchen-sink/apps/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"autoprefixer": "^10.4.20",
"eslint": "^9.31.0",
"typescript": "5.8.2",
"vite": "^5.4.14",
"vite": "^7.0.0",
"vite-tsconfig-paths": "4.2.1"
},
"engines": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@tailwindcss/vite": "^4.0.9",
"tailwindcss": "^4.0.9",
"typescript": "^5.8.2",
"vite": "^6.2.0"
"vite": "^7.0.0"
},
"devDependencies": {
"@repo/eslint-config": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-solid/packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/tailwind-config": "workspace:*",
"vite": "^6.2.0",
"vite": "^7.0.0",
"vite-plugin-solid": "^2.11.6"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-svelte/apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"svelte-check": "^4.3.0",
"tslib": "^2.8.1",
"typescript": "5.8.2",
"vite": "^6.3.2",
"vite": "^7.0.0",
"vitest": "^3.2.0"
}
}
2 changes: 1 addition & 1 deletion examples/with-svelte/apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"svelte-check": "^4.3.0",
"tslib": "^2.8.1",
"typescript": "5.8.2",
"vite": "^6.3.2",
"vite": "^7.0.0",
"vitest": "^3.2.0"
}
}
2 changes: 1 addition & 1 deletion examples/with-svelte/packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"svelte": "^5.36.12",
"svelte-check": "^4.3.0",
"typescript": "5.8.2",
"vite": "^6.3.2"
"vite": "^7.0.0"
}
}
4 changes: 2 additions & 2 deletions examples/with-vite-react/apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"@repo/typescript-config": "workspace:*",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"@vitejs/plugin-react": "^3.1.0",
"@vitejs/plugin-react": "^5.0.0",
"eslint": "^8.57.0",
"typescript": "5.5.4",
"vite": "^5.1.4"
"vite": "^7.0.0"
}
}
2 changes: 1 addition & 1 deletion examples/with-vite/apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"@repo/typescript-config": "workspace:*",
"eslint": "^8.57.0",
"typescript": "5.5.4",
"vite": "^5.1.4"
"vite": "^7.0.0"
}
}
2 changes: 1 addition & 1 deletion examples/with-vite/apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"@repo/typescript-config": "workspace:*",
"eslint": "^8.57.0",
"typescript": "5.5.4",
"vite": "^5.1.4"
"vite": "^7.0.0"
}
}
2 changes: 1 addition & 1 deletion examples/with-vue-nuxt/apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"npm-run-all2": "^6.1.2",
"tsconfig": "workspace:*",
"typescript": "5.5.4",
"vite": "^5.1.4",
"vite": "^7.0.0",
"vue-tsc": "^2.0.4"
}
}
Loading