@atlaspack/transformer-sass 2.12.1-dev.3450 → 2.12.1-dev.3478
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/package.json +4 -4
- package/src/SassTransformer.js +3 -3
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.3478+5fd2da535",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
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.3478+5fd2da535"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/plugin": "2.12.1-dev.
|
|
19
|
+
"@atlaspack/plugin": "2.12.1-dev.3478+5fd2da535",
|
|
20
20
|
"@parcel/source-map": "^2.1.1",
|
|
21
21
|
"sass": "^1.38.0"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "5fd2da535ecbe096d57e03aec15e80bb1d7601f7"
|
|
24
24
|
}
|
package/src/SassTransformer.js
CHANGED
|
@@ -29,7 +29,7 @@ export default (new Transformer({
|
|
|
29
29
|
|
|
30
30
|
// Resolve relative paths from config file
|
|
31
31
|
if (configFile && configResult.includePaths) {
|
|
32
|
-
configResult.includePaths = configResult.includePaths.map(p =>
|
|
32
|
+
configResult.includePaths = configResult.includePaths.map((p) =>
|
|
33
33
|
path.resolve(path.dirname(configFile.filePath), p),
|
|
34
34
|
);
|
|
35
35
|
}
|
|
@@ -133,7 +133,7 @@ function resolvePathImporter({asset, resolve, includePaths, options}) {
|
|
|
133
133
|
paths.push(
|
|
134
134
|
...options.env.SASS_PATH.split(
|
|
135
135
|
process.platform === 'win32' ? ';' : ':',
|
|
136
|
-
).map(p => path.resolve(options.projectRoot, p)),
|
|
136
|
+
).map((p) => path.resolve(options.projectRoot, p)),
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -182,7 +182,7 @@ function resolvePathImporter({asset, resolve, includePaths, options}) {
|
|
|
182
182
|
return function (rawUrl, prev, done) {
|
|
183
183
|
const url = rawUrl.replace(/^file:\/\//, '');
|
|
184
184
|
resolvePath(url, prev)
|
|
185
|
-
.then(resolved => {
|
|
185
|
+
.then((resolved) => {
|
|
186
186
|
if (resolved) {
|
|
187
187
|
done({
|
|
188
188
|
file: resolved.filePath,
|