sass-loader 10.5.0 → 10.5.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/dist/SassError.js +1 -2
- package/dist/index.js +1 -2
- package/dist/utils.js +10 -5
- package/package.json +1 -1
package/dist/SassError.js
CHANGED
package/dist/index.js
CHANGED
package/dist/utils.js
CHANGED
|
@@ -21,12 +21,17 @@ function getDefaultSassImplementation() {
|
|
|
21
21
|
let sassImplPkg = "sass";
|
|
22
22
|
try {
|
|
23
23
|
require.resolve("sass");
|
|
24
|
-
} catch (
|
|
24
|
+
} catch (ignoreError) {
|
|
25
25
|
try {
|
|
26
26
|
require.resolve("node-sass");
|
|
27
27
|
sassImplPkg = "node-sass";
|
|
28
|
-
} catch (
|
|
29
|
-
|
|
28
|
+
} catch (_ignoreError) {
|
|
29
|
+
try {
|
|
30
|
+
require.resolve("sass-embedded");
|
|
31
|
+
sassImplPkg = "sass-embedded";
|
|
32
|
+
} catch (__ignoreError) {
|
|
33
|
+
sassImplPkg = "sass";
|
|
34
|
+
}
|
|
30
35
|
}
|
|
31
36
|
}
|
|
32
37
|
|
|
@@ -70,8 +75,8 @@ function getSassImplementation(loaderContext, implementation) {
|
|
|
70
75
|
// eslint-disable-next-line consistent-return
|
|
71
76
|
return resolvedImplementation;
|
|
72
77
|
} else if (implementationName === "node-sass") {
|
|
73
|
-
if (!_semver.default.satisfies(version, "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0")) {
|
|
74
|
-
loaderContext.emitError(new Error(`Node Sass version ${version} is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0.`));
|
|
78
|
+
if (!_semver.default.satisfies(version, "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0")) {
|
|
79
|
+
loaderContext.emitError(new Error(`Node Sass version ${version} is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0.`));
|
|
75
80
|
}
|
|
76
81
|
|
|
77
82
|
// eslint-disable-next-line consistent-return
|