Skip to content

Commit

Permalink
docs: update shared-options.md (vitejs#11649)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfan0 authored and futurGH committed Feb 26, 2023
1 parent f28b78b commit 696719c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/config/shared-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ In future, `resolve.mainFields`'s default value will be `['browser', 'module', '
## resolve.extensions

- **Type:** `string[]`
- **Default:** `['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json']`
- **Default:** `['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json']`

List of file extensions to try for imports that omit extensions. Note it is **NOT** recommended to omit extensions for custom import types (e.g. `.vue`) since it can interfere with IDE and type support.

Expand Down

0 comments on commit 696719c

Please sign in to comment.