diff --git a/docs/guides/ecosystem/vite.md b/docs/guides/ecosystem/vite.md index cf77e72492..68d5f95bc9 100644 --- a/docs/guides/ecosystem/vite.md +++ b/docs/guides/ecosystem/vite.md @@ -3,7 +3,7 @@ name: Build a frontend using Vite and Bun --- {% callout %} -While Vite currently works with Bun, it has not been heavily optimized, nor has Vite been adapted to use Bun's bundler, module resolver, or transpiler. +Vite works with Bun, but many projects skip the extra dependency and use [HTML imports](/docs/bundler/html) instead. {% /callout %} --- @@ -31,6 +31,7 @@ bun install Start the development server with the `vite` CLI using `bunx`. The `--bun` flag tells Bun to run Vite's CLI using `bun` instead of `node`; by default Bun respects Vite's `#!/usr/bin/env node` [shebang line](). + ```bash bunx --bun vite ```