Treat null importer as noOp if url is not a file: url (#83)

This commit is contained in:
なつき 2022-04-11 17:09:20 -07:00 committed by GitHub
parent f2053d7018
commit 615f6ed70a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,