From 01a1af36fd16d5351a086cb57b0936aa1cbae84e Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Tue, 17 May 2022 21:35:10 +0300 Subject: [PATCH 1/2] fix: importers for modern API --- src/utils.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/utils.js b/src/utils.js index 499d70f0..1b40af48 100644 --- a/src/utils.js +++ b/src/utils.js @@ -224,15 +224,6 @@ async function getSassOptions( options.syntax = "css"; } } - - options.importers = options.importers - ? proxyCustomImporters( - Array.isArray(options.importers) - ? options.importers - : [options.importers], - loaderContext - ) - : []; } else { options.file = resourcePath; From 3c7e6d037ad8405bbf17d271d95e183fc41b83c4 Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Wed, 18 May 2022 18:11:06 +0300 Subject: [PATCH 2/2] fix: logic --- src/utils.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils.js b/src/utils.js index 1b40af48..fba2af2a 100644 --- a/src/utils.js +++ b/src/utils.js @@ -224,6 +224,12 @@ async function getSassOptions( options.syntax = "css"; } } + + options.importers = options.importers + ? Array.isArray(options.importers) + ? options.importers + : [options.importers] + : []; } else { options.file = resourcePath;