ImportResolver

Swift
public enum ImportResolver: Sendable

How the Sass compiler should resolve @import, @use, and @forward rules.


Topics

case loadPath(URL)

Search a filesystem directory to resolve the rule. See the Sass docs.

Declaration
Swift
case loadPath(URL)

case importer(Importer)

Call back through the Importer to resolve the rule.

Declaration
Swift
case importer(Importer)

case filesystemImporter(FilesystemImporter)

Call back through the FilesystemImporter to resolve the rule.

Declaration
Swift
case filesystemImporter(FilesystemImporter)

case nodePackageImporter(URL)

Enables the pkg: URL scheme to resolve imports using the Node.js ecosystem conventions. The URL is the filesystem directory from which to search for node_modules directories. See the Sass docs.

Declaration
Swift
case nodePackageImporter(URL)