src/sass-shake.js
async function reduceEntryPointsToDependencies(includePaths, entryPoints) {
  return await entryPoints.reduce(async function (allDeps, entry) {
    const resolvedDeps = await allDeps.then();
    const newDeps = await getDependencies(includePaths, entry);
    return Promise.resolve([
      ...resolvedDeps,
      ...newDeps
    ]);
  }, Promise.resolve([]));
}
async function reduceEntryPointsToDependencies(includePaths, entryPoints) {
  return await entryPoints.reduce(async function (allDeps, entry) {
    const resolvedDeps = await allDeps.then();
    const newDeps = await getDependencies(includePaths, entry);
    return Promise.resolve([
      ...resolvedDeps,
      ...newDeps
    ]);
  }, Promise.resolve([]));
}
async function reduceEntryPointsToDependencies ( includePaths , entryPoints ) { return await entryPoints . reduce ( async function ( allDeps , entry ) { const resolvedDeps = await allDeps . then ( ) ; const newDeps = await getDependencies ( includePaths , entry ) ; return Promise . resolve ( [ ... resolvedDeps , ... newDeps ] ) ; } , Promise . resolve ( [ ] ) ) ; }
Transform a list of entry points into a list of all dependencies
@param { Array } entryPoints
@returns { Array } dependencies
Transform a list of entry points into a list of all dependencies