LegacyImporter<sync>: sync extends "async"
    ? LegacySyncImporter | LegacyAsyncImporter
    : LegacySyncImporter

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.


This only works with the legacy render and renderSync APIs. Use Importer with compile, compileString, compileAsync, and compileStringAsync instead.

Type Parameters

  • sync = "sync" | "async"