Skip to content

Commit

Permalink
docs: clarify deprecated exports key end with / (#7302)
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
  • Loading branch information
IronLu233 and bluwy committed Mar 13, 2022
1 parent a1044d7 commit 7998807
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/config/index.md
Expand Up @@ -241,6 +241,10 @@ export default defineConfig(({ command, mode }) => {

Vite has a list of "allowed conditions" and will match the first condition that is in the allowed list. The default allowed conditions are: `import`, `module`, `browser`, `default`, and `production/development` based on current mode. The `resolve.conditions` config option allows specifying additional allowed conditions.

:::warning Resolving subpath exports
Export keys ending with "/" is deprecated by Node and may not work well. Please contact the package author to use [`*` subpath patterns](https://nodejs.org/api/packages.html#package-entry-points) instead.
:::

### resolve.mainFields

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

0 comments on commit 7998807

Please sign in to comment.