-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Closed
Labels
Description
Describe the bug
Debug vite.config.ts failed.
Because temporary file ${workspaceFolder}/vite.config.ts.timestamp-xxx.mjs now is move to ${workspaceFolder}/node_modules/.vite-temp/vite.config.ts.timestamp-xxx.mjs
Relevant
Impact
Expect FunctionLocation in debugger: ${workspaceFolder}/vite.config.ts
Actual FunctionLocation in debugger: ${workspaceFolder}/node_modules/.vite-temp/vite.config.ts.timestamp-xxx.mjs
Suggestion
Make temporary filepath for 'vite.config.ts' configurable or add document to explain how to debug
Reproduction
https://stackblitz.com/edit/vitejs-vite-w1tz8u4r?file=index.html&terminal=dev
Steps to reproduce
node --inspect ${workspaceFolder}/node_modules/vite/bin/vite
// or run in javascript debugger terminal
npx vite
System Info
System:
OS: macOS 15.2
CPU: (10) arm64 Apple M4
Memory: 133.61 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.12.0 - ~/.local/state/fnm_multishells/67195_1736746164855/bin/node
npm: 11.0.0 - ~/.local/state/fnm_multishells/67195_1736746164855/bin/npm
pnpm: 9.14.2 - ~/.local/state/fnm_multishells/31840_1736503379186/bin/pnpm
bun: 1.1.42 - ~/.bun/bin/bun
Browsers:
Chrome: 131.0.6778.265
Safari: 18.2
npmPackages:
vite: ^6.0.6 => 6.0.7Used Package Manager
pnpm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.