Created
January 30, 2026 20:24
-
-
Save ferronrsmith/b86a45c7a39d77e1bbe6ee3d523b0892 to your computer and use it in GitHub Desktop.
sass-loader with node-saas > 4.0.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/node_modules/sass-loader/lib/loader.js b/node_modules/sass-loader/lib/loader.js | |
| index d3f30ec..319cd26 100644 | |
| --- a/node_modules/sass-loader/lib/loader.js | |
| +++ b/node_modules/sass-loader/lib/loader.js | |
| @@ -104,8 +104,8 @@ function getRenderFuncFromSassImpl(module) { | |
| } | |
| return module.render.bind(module); | |
| } else if (implementation === "node-sass") { | |
| - if (!semver.satisfies(version, "^4.0.0")) { | |
| - throw new Error("Node Sass version " + version + " is incompatible with ^4.0.0."); | |
| + if (!semver.satisfies(version, "^4.0.0 || > 4.0.0")) { | |
| + throw new Error("Node Sass version " + version + " is incompatible with ^4.0.0 || > 4.0.0"); | |
| } | |
| // There is an issue with node-sass when async custom importers are used | |
| // See https://github.com/sass/node-sass/issues/857#issuecomment-93594360 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment