Skip to content

Commit

Permalink
fix: do not crash on importers for modern API (#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed May 18, 2022
1 parent 58ffb68 commit 095814e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/utils.js
Expand Up @@ -226,12 +226,9 @@ async function getSassOptions(
}

options.importers = options.importers
? proxyCustomImporters(
Array.isArray(options.importers)
? options.importers
: [options.importers],
loaderContext
)
? Array.isArray(options.importers)
? options.importers
: [options.importers]
: [];
} else {
options.file = resourcePath;
Expand Down

0 comments on commit 095814e

Please sign in to comment.