Skip to content

Commit

Permalink
fix: add support for node-sass 7 (#1072)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienma committed Jul 1, 2022
1 parent 138b3ea commit 406b6c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ function getSassImplementation(loaderContext, implementation) {
// eslint-disable-next-line consistent-return
return resolvedImplementation;
} else if (implementationName === "node-sass") {
if (!semver.satisfies(version, "^4.0.0 || ^5.0.0 || ^6.0.0")) {
if (!semver.satisfies(version, "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0")) {
loaderContext.emitError(
new Error(
`Node Sass version ${version} is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0.`
`Node Sass version ${version} is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0.`
)
);
}
Expand Down

0 comments on commit 406b6c4

Please sign in to comment.