We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
neo-async
1 parent fb4217c commit 77e7a8bCopy full SHA for 77e7a8b
src/utils.js
@@ -1,8 +1,6 @@
1
import url from "url";
2
import path from "path";
3
4
-import async from "neo-async";
5
-
6
function getDefaultSassImplementation() {
7
let sassImplPkg = "sass";
8
@@ -706,6 +704,9 @@ function getCompileFn(implementation, options) {
706
704
// We need to use a job queue to make sure that one thread is always available to the UV lib
707
705
if (nodeSassJobQueue === null) {
708
const threadPoolSize = Number(process.env.UV_THREADPOOL_SIZE || 4);
+ // Only used for `node-sass`, so let's load it lazily
+ // eslint-disable-next-line global-require
709
+ const async = require("neo-async");
710
711
nodeSassJobQueue = async.queue(
712
implementation.render.bind(implementation),
0 commit comments