From df4203fe4df4e3391c13901403bc40df3dc91958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=81=A4=E3=81=8D?= Date: Thu, 18 Jul 2024 23:06:59 -0700 Subject: [PATCH] Match SassC on handling array of Imports --- lib/sassc/embedded.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/sassc/embedded.rb b/lib/sassc/embedded.rb index f58a5f7..a0a8f2b 100644 --- a/lib/sassc/embedded.rb +++ b/lib/sassc/embedded.rb @@ -328,9 +328,7 @@ def canonicalize(url, context) return end else - imports = @importer.imports(path, parent_path) - imports = [SassC::Importer::Import.new(path)] if imports.nil? - imports = [imports] unless imports.is_a?(Array) + imports = [*@importer.imports(path, parent_path)] canonical_url = imports_to_native(imports, parent_dir, context.from_import, url, containing_url) unless @importer_results.key?(canonical_url) @file_url = canonical_url