LegacyImporterResult
LegacyImporterResult: {
file: string;
} | {
contents: string;
} | Error | null
file: string;
} | {
contents: string;
} | Error | null
© 2006–2025 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/types/LegacyImporterResult
The result of running a LegacyImporter. It must be one of the following types:
An object with the key
contentswhose value is the contents of a stylesheet (in SCSS syntax). This causes Sass to load that stylesheet’s contents.An object with the key
filewhose value is a path on disk. This causes Sass to load that file as though it had been imported directly.null, which indicates that it doesn’t recognize the URL and another importer should be tried instead.An Error object, indicating that importing failed.
Deprecated
This only works with the legacy render and renderSync APIs. Use ImporterResult with compile, compileString, compileAsync, and compileStringAsync instead.