I want to debug code with breakpoints in vscode. vscode doesn't recognize breakpoints after generating a .map file with ncc build ./src/index.ts -o dist --source-map --no-source-map-register . Looking at the .map file, the sources option in there is
"sources":["../webpack://typescript/webpack/bootstrap","../webpack://typescript/./index.ts"]
manually change to
"sources":["../webpack/bootstrap","../index.ts"],
and then vscode can debug at breakpoints.
Looking at the commit history, the sources entries for .map files generated before c7b461c are correct
I want to debug code with breakpoints in vscode. vscode doesn't recognize breakpoints after generating a .map file with
ncc build ./src/index.ts -o dist --source-map --no-source-map-register. Looking at the .map file, thesourcesoption in there ismanually change to
and then vscode can debug at breakpoints.
Looking at the commit history, the sources entries for .map files generated before c7b461c are correct