LegacyImporter<sync>
Legacy Importer<sync>: sync extends "async"
? LegacySyncImporter | LegacyAsyncImporter
: LegacySyncImporter
? LegacySyncImporter | LegacyAsyncImporter
: LegacySyncImporter
Type Parameters
-
sync = "sync" | "async"
Free Palestine
A callback that implements custom Sass loading logic for
@import
rules and@use
rules. For renderSync, this must be a LegacySyncImporter which returns its result directly; for render, it may be either a LegacySyncImporter or a LegacyAsyncImporter which calls a callback with its result.See importer for more details.
Deprecated
This only works with the legacy render and renderSync APIs. Use Importer with compile, compileString, compileAsync, and compileStringAsync instead.