@parcel/transformer-sass 2.13.1 → 2.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/modern.js +1 -1
- package/package.json +4 -4
- package/src/modern.js +1 -1
package/lib/modern.js
CHANGED
|
@@ -106,7 +106,7 @@ function resolvePathImporter({
|
|
|
106
106
|
*/
|
|
107
107
|
|
|
108
108
|
let containingPath = containingUrl ? (0, _url().fileURLToPath)(containingUrl) : asset.filePath;
|
|
109
|
-
if (!containingUrl) {
|
|
109
|
+
if (!containingUrl && url.startsWith('file:')) {
|
|
110
110
|
// If containingUrl is not provided, then url should be an absolute file:/// URL.
|
|
111
111
|
let filePath = (0, _url().fileURLToPath)(url);
|
|
112
112
|
url = _path().default.relative(_path().default.dirname(containingPath), filePath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/transformer-sass",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"source": "src/SassTransformer.js",
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">= 16.0.0",
|
|
20
|
-
"parcel": "^2.13.
|
|
20
|
+
"parcel": "^2.13.2"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@parcel/plugin": "2.13.
|
|
23
|
+
"@parcel/plugin": "2.13.2",
|
|
24
24
|
"@parcel/source-map": "^2.1.1",
|
|
25
25
|
"sass": "^1.38.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "4d27ec8b8bd1792f536811fef86e74a31fa0e704"
|
|
28
28
|
}
|
package/src/modern.js
CHANGED
|
@@ -98,7 +98,7 @@ function resolvePathImporter({
|
|
|
98
98
|
let containingPath = containingUrl
|
|
99
99
|
? fileURLToPath(containingUrl)
|
|
100
100
|
: asset.filePath;
|
|
101
|
-
if (!containingUrl) {
|
|
101
|
+
if (!containingUrl && url.startsWith('file:')) {
|
|
102
102
|
// If containingUrl is not provided, then url should be an absolute file:/// URL.
|
|
103
103
|
let filePath = fileURLToPath(url);
|
|
104
104
|
url = path.relative(path.dirname(containingPath), filePath);
|