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 working in a monorepo where I have a bunch of small packages within the monorepo. When debugging with VSCode and compiling one of the packages with SWC, the source maps aren't working correctly. As such, I have unbounded breakpoints and when the breakpoints are hit, they hit the transpiled code rather than the sourced code.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I am working in a monorepo where I have a bunch of small packages within the monorepo. When debugging with VSCode and compiling one of the packages with SWC, the source maps aren't working correctly. As such, I have unbounded breakpoints and when the breakpoints are hit, they hit the transpiled code rather than the sourced code.
Here are my configs:
here's the structure of my project:
I have checked and the source maps are generated as expect, but for some VSCode keeps hitting the transpiled code when debugging.
When we use Babel, the breakpoints hit the source code as expected.
Am I doing anything wrong here? Would appreciate any pointers!
Beta Was this translation helpful? Give feedback.
All reactions