The result of running a LegacyImporter. It must be one of the following types:
An object with the key contents whose value is the contents of a stylesheet (in SCSS syntax). This causes Sass to load that stylesheet’s contents.
contents
An object with the key file whose value is a path on disk. This causes Sass to load that file as though it had been imported directly.
file
null, which indicates that it doesn’t recognize the URL and another importer should be tried instead.
null
An Error object, indicating that importing failed.
This only works with the legacy render and renderSync APIs. Use ImporterResult with compile, compileString, compileAsync, and compileStringAsync instead.
© 2006–2025 the Sass team, and numerous contributorsLicensed 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.