Skip to content

Commit cba1f62

Browse files
authored
docs: add resolve.tsconfigPaths option docs (#21197)
1 parent 283a277 commit cba1f62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

config/shared-options.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,13 @@ Enabling this setting causes vite to determine file identity by the original fil
166166
- **Related:** [esbuild#preserve-symlinks](https://esbuild.github.io/api/#preserve-symlinks), [webpack#resolve.symlinks
167167
](https://webpack.js.org/configuration/resolve/#resolvesymlinks)
168168

169+
## resolve.tsconfigPaths
170+
171+
- **Type:** `boolean`
172+
- **Default:** `false`
173+
174+
Enables the tsconfig paths resolution feature. `paths` option in `tsconfig.json` will be used to resolve imports. See [Features](/guide/features.md#paths) for more details.
175+
169176
## html.cspNonce
170177

171178
- **Type:** `string`

0 commit comments

Comments
 (0)