Skip to content

Commit

Permalink
docs: clarify CommonJS with optimizeDeps.exclude (#3961)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
aleclarson and antfu committed Jun 26, 2021
1 parent cb21f71 commit 8fa75b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,10 @@ createServer()

Dependencies to exclude from pre-bundling.

:::warning CommonJS
CommonJS dependencies should not be excluded from optimization. If an ESM dependency has a nested CommonJS dependency, it should not be excluded as well.
:::

### optimizeDeps.include

- **Type:** `string[]`
Expand Down

0 comments on commit 8fa75b5

Please sign in to comment.