Skip to content

Commit

Permalink
patch sass loader
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Dec 31, 2020
1 parent b9e9140 commit e8b7814
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/next/compiled/sass-loader/cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,13 +349,13 @@ function getSassOptions(loaderContext, loaderOptions, content, implementation, u
let fibers;

try {
fibers = __webpack_require__.ab + "fibers.js";
fibers = require.resolve('fibers');
} catch (_error) {// Nothing
}

if (__webpack_require__.ab + "fibers.js") {
if (fibers) {
// eslint-disable-next-line global-require, import/no-dynamic-require
options.fiber = __webpack_require__(911)(fibers);
options.fiber = require(fibers);
}
} else if (options.fiber === false) {
// Don't pass the `fiber` option for `sass` (`Dart Sass`)
Expand Down

0 comments on commit e8b7814

Please sign in to comment.