@atlaspack/transformer-sass 2.12.1-dev.3398 → 2.12.1-dev.3401
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/SassTransformer.js +3 -3
- package/package.json +4 -4
- package/src/SassTransformer.js +3 -3
package/lib/SassTransformer.js
CHANGED
|
@@ -138,14 +138,14 @@ function resolvePathImporter({
|
|
|
138
138
|
includePaths,
|
|
139
139
|
options
|
|
140
140
|
}) {
|
|
141
|
-
// This is a reimplementation of the Sass resolution algorithm that uses
|
|
141
|
+
// This is a reimplementation of the Sass resolution algorithm that uses Atlaspack's
|
|
142
142
|
// FS and tracks all tried files so they are watched for creation.
|
|
143
143
|
async function resolvePath(url, prev) {
|
|
144
144
|
/*
|
|
145
145
|
Imports are resolved by trying, in order:
|
|
146
146
|
* Loading a file relative to the file in which the `@import` appeared.
|
|
147
147
|
* Each custom importer.
|
|
148
|
-
* Loading a file relative to the current working directory (This rule doesn't really make sense for
|
|
148
|
+
* Loading a file relative to the current working directory (This rule doesn't really make sense for Atlaspack).
|
|
149
149
|
* Each load path in `includePaths`
|
|
150
150
|
* Each load path specified in the `SASS_PATH` environment variable, which should be semicolon-separated on Windows and colon-separated elsewhere.
|
|
151
151
|
See: https://sass-lang.com/documentation/js-api#importer
|
|
@@ -184,7 +184,7 @@ function resolvePathImporter({
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
// If none of the default sass rules apply, try
|
|
187
|
+
// If none of the default sass rules apply, try Atlaspack's resolver.
|
|
188
188
|
for (let u of urls) {
|
|
189
189
|
if (NODE_MODULE_ALIAS_RE.test(u)) {
|
|
190
190
|
u = u.slice(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/transformer-sass",
|
|
3
|
-
"version": "2.12.1-dev.
|
|
3
|
+
"version": "2.12.1-dev.3401+b483af77f",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"source": "src/SassTransformer.js",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">= 16.0.0",
|
|
16
|
-
"parcel": "^2.12.1-dev.
|
|
16
|
+
"parcel": "^2.12.1-dev.3401+b483af77f"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/plugin": "2.12.1-dev.
|
|
19
|
+
"@atlaspack/plugin": "2.12.1-dev.3401+b483af77f",
|
|
20
20
|
"@parcel/source-map": "^2.1.1",
|
|
21
21
|
"sass": "^1.38.0"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "b483af77f02d1258c8dad156e097b94f83671d8e"
|
|
24
24
|
}
|
package/src/SassTransformer.js
CHANGED
|
@@ -105,7 +105,7 @@ export default (new Transformer({
|
|
|
105
105
|
}): Transformer);
|
|
106
106
|
|
|
107
107
|
function resolvePathImporter({asset, resolve, includePaths, options}) {
|
|
108
|
-
// This is a reimplementation of the Sass resolution algorithm that uses
|
|
108
|
+
// This is a reimplementation of the Sass resolution algorithm that uses Atlaspack's
|
|
109
109
|
// FS and tracks all tried files so they are watched for creation.
|
|
110
110
|
async function resolvePath(
|
|
111
111
|
url,
|
|
@@ -115,7 +115,7 @@ function resolvePathImporter({asset, resolve, includePaths, options}) {
|
|
|
115
115
|
Imports are resolved by trying, in order:
|
|
116
116
|
* Loading a file relative to the file in which the `@import` appeared.
|
|
117
117
|
* Each custom importer.
|
|
118
|
-
* Loading a file relative to the current working directory (This rule doesn't really make sense for
|
|
118
|
+
* Loading a file relative to the current working directory (This rule doesn't really make sense for Atlaspack).
|
|
119
119
|
* Each load path in `includePaths`
|
|
120
120
|
* Each load path specified in the `SASS_PATH` environment variable, which should be semicolon-separated on Windows and colon-separated elsewhere.
|
|
121
121
|
|
|
@@ -160,7 +160,7 @@ function resolvePathImporter({asset, resolve, includePaths, options}) {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
// If none of the default sass rules apply, try
|
|
163
|
+
// If none of the default sass rules apply, try Atlaspack's resolver.
|
|
164
164
|
for (let u of urls) {
|
|
165
165
|
if (NODE_MODULE_ALIAS_RE.test(u)) {
|
|
166
166
|
u = u.slice(1);
|