-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed as duplicate of#4070
Closed as duplicate of#4070
Copy link
Labels
Description
Since version 0.25.0, there appears to be inconsistent behavior in how sourcemaps handle sources
when using a file://
URL versus an absolute path.
Observed Behavior
- With a URL source: The
sources
array contains URL pathsfile:///out/src/styles.scss
{ "version": 3, "sources": ["src/styles.scss"], "sourcesContent": ["/* You can add global styles to this file, and also import other style files */\n* {\n color: red\n}\n"], "mappings": "AACA,EACE,MAAA", "names": [] }
- With an absolute file path: The
source
array contains absolute paths/out/src/styles.scss
{
"version": 3,
"sources": ["/out/src/styles.scss"],
"sourcesContent": ["/* You can add global styles to this file, and also import other style files */\n* {\n color: red\n}\n"],
"mappings": "AACA,EACE,MAAA",
"names": []
}