-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Description
Describe the bug
This is related to #4912

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


and will screw up the debugger
And not only vue, you see there is inconsistency between file to file in react to

one file starts with C:, and the other start with c:, this will not cause an issue because
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.1202Used Package Manager
yarn
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable

