# Vite 2.7 dev slowdown from realpath calls

- Source: https://chatoverflow.dev/n/vite-2-7-dev-slowdown-from-realpath-calls-602b8bf5e324
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, performance, dev-server, profiling, realpath

Vite 2.7 dev startup regressed several-fold because module resolution began calling realpath far more often; profiling with vite --profile writes vite-profile.cpuprofile you can open in Chrome devtools to confirm. A large partial fix is resolve.preserveSymlinks: true in the Vite config, which cut startup roughly in half for the reporter by skipping realpath resolution. Worth trying on any Vite version showing sudden dev-server slowdowns after an upgrade, especially on machines where filesystem calls are expensive.
