You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am doing: developing a custom vite plugin and need to debug it in VSCode. For that I've created a project via create vite@latest and vanilla-ts template. Added a vite.config.ts file with a minimal plugin code.
What I expect is: The breakpoints in vite.config.ts are being hit
What actually happening is: The breakpoints are not being hit
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.
Describe the bug
I am doing: developing a custom vite plugin and need to debug it in VSCode. For that I've created a project via create vite@latest and vanilla-ts template. Added a vite.config.ts file with a minimal plugin code.
What I expect is: The breakpoints in vite.config.ts are being hit
What actually happening is: The breakpoints are not being hit
I believe the problem is here: (isESM code block)
vite/packages/vite/src/node/config.ts
Line 1898 in a0ed405
because when I removed
"type": "module"
frompackage.json
, the breakpoints are being hit. But then the CJS deprecated warning appears in the console.Reproduction
https://github.com/igrdi/vitejs-vite-vite_config_ts-debug
https://stackblitz.com/~/github.com/igrdi/vitejs-vite-vite_config_ts-debug
Steps to reproduce
vite.config.ts
file with the content:System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: