Interface LegacyImporterThis

The value of this in the context of a LegacyImporter function.

deprecated

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

Hierarchy

Index

Properties

fromImport

fromImport: boolean
Compatibility:
Dart Sass
since 1.33.0
Node Sass

Whether the importer is being invoked because of a Sass @import rule, as opposed to a @use or @forward rule.

This should only be used for determining whether or not to load import-only files.

options

options: { data?: string; file?: string; includePaths: string; indentType: 0 | 1; indentWidth: number; linefeed: "cr" | "crlf" | "lf" | "lfcr"; precision: 10; result: { stats: { entry: string; start: number } }; style: 1 }

A partial representation of the options passed to render or renderSync.

Type declaration