Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
Treat null importer as noOp if url is not a file: url (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Apr 12, 2022
1 parent f2053d7 commit 615f6ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/dart_sass_embedded.dart
Expand Up @@ -71,7 +71,8 @@ void main(List<String> args) {
color: request.alertColor,
logger: logger,
importers: importers,
importer: _decodeImporter(dispatcher, request, input.importer),
importer: _decodeImporter(dispatcher, request, input.importer) ??
(input.url.startsWith("file:") ? null : sass.Importer.noOp),
functions: globalFunctions,
syntax: syntaxToSyntax(input.syntax),
style: style,
Expand Down

0 comments on commit 615f6ed

Please sign in to comment.