From cdd2f123fbacf207fdbdfb258e6744d267b7ff99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=A3=E5=BC=BA?= Date: Mon, 19 Aug 2024 15:00:48 +0800 Subject: [PATCH] Fix: generate correct sourceMaps when custom importer is used Generate correct sourceMaps when custom importer is used. https://github.com/sass/sass/issues/3300 https://github.com/webpack-contrib/sass-loader/issues/1217 --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 9912b9a9..529652cd 100644 --- a/src/utils.js +++ b/src/utils.js @@ -691,7 +691,7 @@ function getModernWebpackImporter(loaderContext, implementation, loadPaths) { }); }); - return { contents, syntax }; + return { contents, syntax, sourceMapUrl: canonicalUrl }; } catch (err) { return null; }