Skip to content

Commit

Permalink
docs: typo (#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
MangoTsing committed Jan 15, 2021
1 parent bd3b1bf commit 2ce1efa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guide/dep-pre-bundling.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Some dependencies may be designed to be used via deep imports, e.g. `firebase` e

## Dependency Compatibility

While Vite tries its best to accomodate non-ESM dependencies, there are going to be some dependencies that won't work out of the box. The most common types are those that import Node.js built-in modules (e.g. `os` or `path`) and expect the bundler to automatically shim them. These packages are typically written assuming all users will be consuming it with `webpack`, but such usage does not make sense when targeting browser environments.
While Vite tries its best to accommodate non-ESM dependencies, there are going to be some dependencies that won't work out of the box. The most common types are those that import Node.js built-in modules (e.g. `os` or `path`) and expect the bundler to automatically shim them. These packages are typically written assuming all users will be consuming it with `webpack`, but such usage does not make sense when targeting browser environments.
When using Vite, it is strongly recommended to always prefer dependencies that provide ESM formats. This will make your build faster, and results in smaller production bundles due to more efficient tree-shaking.
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/types/chokidar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export interface WatchOptions {

/**
* Whether to use the `fsevents` watching interface if available. When set to `true` explicitly
* and `fsevents` is available this supercedes the `usePolling` setting. When set to `false` on
* and `fsevents` is available this supersedes the `usePolling` setting. When set to `false` on
* OS X, `usePolling: true` becomes the default.
*/
useFsEvents?: boolean
Expand Down

0 comments on commit 2ce1efa

Please sign in to comment.