Skip to content

Commit

Permalink
fix: missing sass embedded check when get default implementation (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic authored Dec 19, 2023
1 parent a2565f8 commit 9914870
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,17 @@ function getDefaultSassImplementation() {

try {
require.resolve("sass");
} catch (error) {
} catch (ignoreError) {
try {
require.resolve("node-sass");
sassImplPkg = "node-sass";
} catch (ignoreError) {
sassImplPkg = "sass";
} catch (_ignoreError) {
try {
require.resolve("sass-embedded");
sassImplPkg = "sass-embedded";
} catch (__ignoreError) {
sassImplPkg = "sass";
}
}
}

Expand Down

0 comments on commit 9914870

Please sign in to comment.