Skip to content

Commit

Permalink
Fix: generate correct sourceMaps when custom importer is used
Browse files Browse the repository at this point in the history
Generate correct sourceMaps when custom importer is used.

sass/sass#3300

#1217
  • Loading branch information
DaiQiangReal authored Aug 19, 2024
1 parent ef02dad commit cdd2f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ function getModernWebpackImporter(loaderContext, implementation, loadPaths) {
});
});

return { contents, syntax };
return { contents, syntax, sourceMapUrl: canonicalUrl };
} catch (err) {
return null;
}
Expand Down

0 comments on commit cdd2f12

Please sign in to comment.