-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
SSR SourceMap not loaded when debugging #3288
Comments
As a side note, I believe if source-maps were supported in SSR mode we could get rid of the (slightly awkward) |
@DylanPiercey yes. |
Hi, Thanks in advance for help ;D |
…#3288) (vitejs#11576)" This reverts commit dc05e97.
This is a huge development workflow blocker - would be great to get fixes merged in! |
@gsxdsm Now there's a solution: cyco130/vavite#17 It may one day make it into Vite itself, maybe. |
Thanks cyco! Checked out vavite - very cool! I've been trying to get it working with Sveltekit (or at least the node-loader package into vite) but not having any luck. Will keep tinkering with it. |
Here's an example repo. Feel free to open an issue at vavite's repo or hit me on Rakkas's Discord channel. |
That worked! Thank you so much!! |
Describe the bug
Currently it looks like when debugging the node process with source maps enabled (
node --inspect --enable-source-maps ./source.js
) that the source maps are not actually loaded.Reproduction
Load any file via
ssrLoadModule
with adebugger
.You will see that the debugger shows compiled code instead of the source.
eg:
source.js
debug.js
Then run
node --inspect-brk --enable-source-maps ./source.js
And finally connect your favorite debugger.
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: npm
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: