Skip to content

Source maps are generated incorrectly and cannot be debugged in vscode. #1121

Description

@axuj

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions