From 406b6c4a8f2d67d09c8b5791dc41f85e191a225a Mon Sep 17 00:00:00 2001 From: Julien Ma Date: Fri, 1 Jul 2022 16:42:28 +0200 Subject: [PATCH] fix: add support for node-sass 7 (#1072) --- src/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.js b/src/utils.js index 8f231ecc..df5e5edc 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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.` ) ); }