Skip to content

Commit

Permalink
feat: add sass-embedded to auto loading (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteUser committed Feb 15, 2022
1 parent d3827f2 commit c8dae87
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/utils.js
Expand Up @@ -15,8 +15,13 @@ function getDefaultSassImplementation() {
try {
require.resolve("node-sass");
sassImplPkg = "node-sass";
} catch (ignoreError) {
sassImplPkg = "sass";
} catch (error) {
try {
require.resolve("sass-embedded");
sassImplPkg = "sass-embedded";
} catch (ignoreError) {
sassImplPkg = "sass";
}
}
}

Expand Down

0 comments on commit c8dae87

Please sign in to comment.