Skip to content

Commit 5e2dee8

Browse files
authored
feat: add resolve.preserveSymlinks option (#4708)
1 parent 3f232e8 commit 5e2dee8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

config/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,16 @@ export default defineConfig(async ({ command, mode }) => {
206206

207207
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.
208208

209+
### resolve.preserveSymlinks
210+
211+
- **Type:** `boolean`
212+
- **Default:** `false`
213+
214+
Enabling this setting causes vite to determine file identity by the original file path (i.e. the path without following symlinks) instead of the real file path (i.e. the path after following symlinks).
215+
216+
- **Related:** [esbuild#preserve-symlinks](https://esbuild.github.io/api/#preserve-symlinks), [webpack#resolve.symlinks
217+
](https://webpack.js.org/configuration/resolve/#resolvesymlinks)
218+
209219
### css.modules
210220

211221
- **Type:**

0 commit comments

Comments
 (0)