less-loader 12.3.1 → 12.3.3
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/dist/index.js +4 -2
- package/package.json +2 -13
package/dist/index.js
CHANGED
|
@@ -26,7 +26,9 @@ async function lessLoader(source) {
|
|
|
26
26
|
const useSourceMap = typeof options.sourceMap === "boolean" ? options.sourceMap : this.sourceMap;
|
|
27
27
|
if (useSourceMap) {
|
|
28
28
|
lessOptions.sourceMap = {
|
|
29
|
-
|
|
29
|
+
sourceMapBasepath: "",
|
|
30
|
+
outputSourceFiles: true,
|
|
31
|
+
disableSourcemapAnnotation: true
|
|
30
32
|
};
|
|
31
33
|
}
|
|
32
34
|
let data = source;
|
|
@@ -97,7 +99,7 @@ async function lessLoader(source) {
|
|
|
97
99
|
}
|
|
98
100
|
let map = typeof result.map === "string" ? JSON.parse(result.map) : result.map;
|
|
99
101
|
if (map && useSourceMap) {
|
|
100
|
-
map = (0, _utils.normalizeSourceMap)(map
|
|
102
|
+
map = (0, _utils.normalizeSourceMap)(map);
|
|
101
103
|
}
|
|
102
104
|
callback(null, css, map);
|
|
103
105
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "less-loader",
|
|
3
|
-
"version": "12.3.
|
|
3
|
+
"version": "12.3.3",
|
|
4
4
|
"description": "A Less loader for webpack. Compiles Less to CSS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -52,26 +52,16 @@
|
|
|
52
52
|
"@babel/preset-env": "^7.24.7",
|
|
53
53
|
"@commitlint/cli": "^18.6.1",
|
|
54
54
|
"@commitlint/config-conventional": "^18.6.2",
|
|
55
|
-
"@eslint/js": "^9.32.0",
|
|
56
|
-
"@eslint/markdown": "^7.1.0",
|
|
57
|
-
"@stylistic/eslint-plugin": "^5.2.2",
|
|
58
55
|
"babel-jest": "^30.0.0",
|
|
59
56
|
"cross-env": "^7.0.3",
|
|
60
57
|
"cspell": "^8.10.0",
|
|
61
58
|
"del": "^7.1.0",
|
|
62
59
|
"del-cli": "^5.1.0",
|
|
63
60
|
"eslint": "^9.32.0",
|
|
64
|
-
"eslint-config-prettier": "^10.1.8",
|
|
65
61
|
"eslint-config-webpack": "^4.5.1",
|
|
66
|
-
"eslint-plugin-import": "^2.32.0",
|
|
67
|
-
"eslint-plugin-jest": "^29.0.1",
|
|
68
|
-
"eslint-plugin-n": "^17.21.1",
|
|
69
|
-
"eslint-plugin-prettier": "^5.5.3",
|
|
70
|
-
"eslint-plugin-unicorn": "^60.0.0",
|
|
71
|
-
"globals": "^16.3.0",
|
|
72
62
|
"husky": "^9.1.3",
|
|
73
63
|
"jest": "^30.0.0",
|
|
74
|
-
"less": "^4.
|
|
64
|
+
"less": "^4.6.3",
|
|
75
65
|
"less-plugin-glob": "^3.0.0",
|
|
76
66
|
"lint-staged": "^15.2.7",
|
|
77
67
|
"memfs": "^4.9.3",
|
|
@@ -79,7 +69,6 @@
|
|
|
79
69
|
"prettier": "^3.3.2",
|
|
80
70
|
"standard-version": "^9.3.1",
|
|
81
71
|
"strip-ansi": "^7.1.0",
|
|
82
|
-
"typescript-eslint": "^8.38.0",
|
|
83
72
|
"webpack": "^5.92.1"
|
|
84
73
|
},
|
|
85
74
|
"peerDependencies": {
|