sass-loader
Advanced tools
Comparing version 11.1.0 to 11.1.1
@@ -12,2 +12,3 @@ "use strict"; | ||
exports.normalizeSourceMap = normalizeSourceMap; | ||
exports.isSupportedFibers = isSupportedFibers; | ||
@@ -100,2 +101,7 @@ var _url = _interopRequireDefault(require("url")); | ||
} | ||
function isSupportedFibers() { | ||
const [nodeVersion] = process.versions.node.split("."); | ||
return Number(nodeVersion) < 16; | ||
} | ||
/** | ||
@@ -117,3 +123,3 @@ * Derives the sass options from the loader context and normalizes its values with sane defaults. | ||
if (isDartSass) { | ||
if (isDartSass && isSupportedFibers()) { | ||
const shouldTryToResolveFibers = !options.fiber && options.fiber !== false; | ||
@@ -120,0 +126,0 @@ |
{ | ||
"name": "sass-loader", | ||
"version": "11.1.0", | ||
"version": "11.1.1", | ||
"description": "Sass loader for webpack", | ||
@@ -87,3 +87,3 @@ "license": "MIT", | ||
"memfs": "^3.2.2", | ||
"node-sass": "^5.0.0", | ||
"node-sass": "^6.0.0", | ||
"node-sass-glob-importer": "^5.3.2", | ||
@@ -90,0 +90,0 @@ "npm-run-all": "^4.1.5", |
@@ -199,4 +199,6 @@ <div align="center"> | ||
We automatically inject the [`fibers`](https://github.com/laverdet/node-fibers) package (setup `sassOptions.fiber`) if is possible (i.e. you need install the [`fibers`](https://github.com/laverdet/node-fibers) package). | ||
We automatically inject the [`fibers`](https://github.com/laverdet/node-fibers) package (setup `sassOptions.fiber`) for `Node.js` less v16.0.0 if is possible (i.e. you need install the [`fibers`](https://github.com/laverdet/node-fibers) package). | ||
> Fibers is not compatible with `Node.js` v16.0.0 or later ([see introduction to readme](https://github.com/laverdet/node-fibers)). | ||
**package.json** | ||
@@ -203,0 +205,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
532
681
46269
8