mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Clarify
This commit is contained in:
@@ -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](<https://en.wikipedia.org/wiki/Shebang_(Unix)>).
|
||||
|
||||
```bash
|
||||
bunx --bun vite
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user