Skip to content

Source map genrating issue #4964

@CGQAQ

Description

@CGQAQ

Describe the bug

This is related to #4912

image
In generated source map, you have two sources but only one sourceContents. this is not an issue on firefox windows but is a serious issue on chrome windows
image
image
and will screw up the debugger

And not only vue, you see there is inconsistency between file to file in react to
image
one file starts with C:, and the other start with c:, this will not cause an issue because

image
image

you got one two one match between sources and sourcesContent in the sourcemap

how to fix: don't mix up uppercase and lowercase Driver letter in sources, and don't add both of them to the sources, be sure to match up sources length with sourcesContent

Reproduction

...

System Info

System:
    OS: Windows 10 10.0.19043
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 11.60 GB / 23.88 GB
  Binaries:
    Node: 16.9.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.11 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.24.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1023.0), Chromium (93.0.961.47)
    Internet Explorer: 11.0.19041.1202

Used Package Manager

yarn

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions