Skip to content

Commit

Permalink
docs: fix typo (#1633) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jan 22, 2021
1 parent 6cf893d commit 037e1e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/dep-pre-bundling.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Pre-bundling them to speed up dev server page load...

This is Vite performing what we call "dependency pre-bundling". This process serves two purposes:

1. **CommonJS and UMD comaptibility:** During development, Vite's dev serves all code as native ESM. Therefore, Vite must convert dependencies that are shipped as CommonJS or UMD into ESM first.
1. **CommonJS and UMD compatibility:** During development, Vite's dev serves all code as native ESM. Therefore, Vite must convert dependencies that are shipped as CommonJS or UMD into ESM first.

When converting CommonJS dependencies, Vite performs smart import analysis so that named imports to CommonJS modules will work as expected even if the exports are dynamically assigned (e.g. React):

Expand Down

0 comments on commit 037e1e5

Please sign in to comment.