Skip to content

Commit f9f70fa

Browse files
fix: node-sass logic
1 parent a7fb212 commit f9f70fa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/utils.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,12 @@ function getWebpackImporter(loaderContext, implementation, includePaths) {
711711
return function importer(originalUrl, prev, done) {
712712
const { fromImport } = this;
713713

714-
resolve(prev, originalUrl, fromImport)
714+
resolve(
715+
prev,
716+
originalUrl,
717+
// For `node-sass`
718+
typeof fromImport === "undefined" ? true : fromImport,
719+
)
715720
.then((result) => {
716721
// Add the result as dependency.
717722
// Although we're also using stats.includedFiles, this might come in handy when an error occurs.

0 commit comments

Comments
 (0)