Closed ian612 closed 4 months ago
I've had a bit of instability with build:watch
with this, so might require some further investigation before it's fully ready
I've fixed this with a much better method for getting the sourcemaps to compile correctly. This should allow debugging both directly in Chrome and VS Code without requiring anyone to change their workflow.
Closing this because it's not really the best way to implement this, and I have realized that VS Code connects correctly when build:watch
is being used, as long as at least one change is made and the watch files are copied.
This fix addresses an issue where the sourcemaps for the code where getting mangled during build, which would prevent VS Code from hooking in properly during debugging. This would cause issues with breakpoints not binding and prevent use of the external VS Code debugging and inspection tools.
The fix is essentially to rejig how the
*.js
files are pulled together during build, and to set thesourceRoot
property to the correct source folder when writing sourcemaps.