Skip to content

Commit

Permalink
docs: fix a few typos in /guide/why.md (#3016)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnntropy committed Apr 16, 2021
1 parent 8c51bc0 commit 7445aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/why.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Vite improves the dev server start time by first dividing the modules in an appl

- **Source code** often contains non-plain JavaScript that needs transforming (e.g. JSX, CSS or Vue/Svelte components), and will be edited very often. Also, not all source code needs to be loaded at the same time (e.g. with route-based code-splitting).

Vite serves source code over [native ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules). This is essentially letting the browser taking over part of the job of a bundler: Vite only needs to transform and serve source code on demand, as the browser requests them. Code behind conditional dynamic imports are only processed if actually used on the current screen.
Vite serves source code over [native ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules). This is essentially letting the browser take over part of the job of a bundler: Vite only needs to transform and serve source code on demand, as the browser requests it. Code behind conditional dynamic imports is only processed if actually used on the current screen.

![bundler based dev server](/images/bundler.png)

Expand Down

0 comments on commit 7445aea

Please sign in to comment.