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 was playing around with server functions in SolidStart and noticed that the debugger in WebStorm cannot properly map the code within 'use server' blocks.
Turns out the source filename in the generated sourcemap was file:\\\ ... \src\routes\page.tsx?pick=route. So the query parameter seems to mislead the debugger.
I don't see why sourcemaps would include query parameters but I'm not sure where is the right place to remove them. I tried hacking this directly into plugin-directives by using a stripped url instead of id here:
It does work and WebStorm does pick up breakpoints properly but I guess there has to be a more appropriate place to strip query parameters from sourcemaps as more plugins might rely on them.
The text was updated successfully, but these errors were encountered:
I was playing around with server functions in SolidStart and noticed that the debugger in WebStorm cannot properly map the code within
'use server'
blocks.Turns out the source filename in the generated sourcemap was
file:\\\ ... \src\routes\page.tsx?pick=route
. So the query parameter seems to mislead the debugger.I don't see why sourcemaps would include query parameters but I'm not sure where is the right place to remove them. I tried hacking this directly into
plugin-directives
by using a strippedurl
instead ofid
here:vinxi/packages/vinxi-directives/plugin.js
Lines 50 to 57 in 93d236a
It does work and WebStorm does pick up breakpoints properly but I guess there has to be a more appropriate place to strip query parameters from sourcemaps as more plugins might rely on them.
The text was updated successfully, but these errors were encountered: