-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source maps in VSCode not working for debug vite.config.ts #19191
Comments
It's likely a duplicate of #19110. Can you try this |
Got it! I will close it. But I still hope the above suggestions can be optimized. |
I was thinking that running debugger on |
When developing the vite plugin, it seems that the plugin code (in the project) cannot be mapped back(
Reproductionhttps://stackblitz.com/edit/vitejs-vite-uk5hhx86?file=index.mjs Steps to reproduce
|
@thy486 This looks like a slightly different issue and more complicated. Probably vscode got confused with I'm not sure how this setup was working on Vite 5. Can you create a new issue for this? |
I seem to know why, it should be the sourcemap of these two modules I think this is just a phenomenon, haha |
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
#17894
nodejs/node#45196
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
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: