@atlaspack/transformer-less 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/LessTransformer.js +3 -1
- package/src/loadConfig.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/transformer-less",
|
|
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/LessTransformer.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
|
"less": "^4.1.1"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "5fd2da535ecbe096d57e03aec15e80bb1d7601f7"
|
|
24
24
|
}
|
package/src/LessTransformer.js
CHANGED
|
@@ -58,7 +58,9 @@ export default (new Transformer({
|
|
|
58
58
|
let rawMap = JSON.parse(result.map);
|
|
59
59
|
map.addVLQMap({
|
|
60
60
|
...rawMap,
|
|
61
|
-
sources: rawMap.sources.map(s =>
|
|
61
|
+
sources: rawMap.sources.map((s) =>
|
|
62
|
+
path.relative(options.projectRoot, s),
|
|
63
|
+
),
|
|
62
64
|
});
|
|
63
65
|
asset.setMap(map);
|
|
64
66
|
}
|
package/src/loadConfig.js
CHANGED
|
@@ -24,7 +24,7 @@ export async function load({
|
|
|
24
24
|
|
|
25
25
|
// Resolve relative paths from config file
|
|
26
26
|
if (configContents.paths) {
|
|
27
|
-
configContents.paths = configContents.paths.map(p =>
|
|
27
|
+
configContents.paths = configContents.paths.map((p) =>
|
|
28
28
|
path.resolve(path.dirname(configFile.filePath), p),
|
|
29
29
|
);
|
|
30
30
|
}
|