Skip to content

Commit 406b6c4

Browse files
authored
fix: add support for node-sass 7 (#1072)
1 parent 138b3ea commit 406b6c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ function getSassImplementation(loaderContext, implementation) {
7272
// eslint-disable-next-line consistent-return
7373
return resolvedImplementation;
7474
} else if (implementationName === "node-sass") {
75-
if (!semver.satisfies(version, "^4.0.0 || ^5.0.0 || ^6.0.0")) {
75+
if (!semver.satisfies(version, "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0")) {
7676
loaderContext.emitError(
7777
new Error(
78-
`Node Sass version ${version} is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0.`
78+
`Node Sass version ${version} is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0.`
7979
)
8080
);
8181
}

0 commit comments

Comments
 (0)