Skip to content

Commit

Permalink
Prepare importer shim for dart-sass 1.67.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Sep 5, 2023
1 parent 8051d72 commit 78b6a09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/sassc/embedded.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ class Engine
def render
return @template.dup if @template.empty?

base_importer = import_handler.setup(nil)

result = ::Sass.compile_string(
@template,
importer: import_handler.setup(nil),
importer: base_importer,
load_paths: load_paths,
syntax: syntax,
url: file_url,
Expand All @@ -26,7 +28,7 @@ def render
style: output_style,

functions: functions_handler.setup(nil, functions: @functions),
importers: @options.fetch(:importers, []),
importers: (base_importer ? [base_importer] : []).concat(@options.fetch(:importers, [])),

alert_ascii: @options.fetch(:alert_ascii, false),
alert_color: @options.fetch(:alert_color, nil),
Expand Down

0 comments on commit 78b6a09

Please sign in to comment.