W3cubDocs

/Sass

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

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: { context: LegacyPluginThis; data?: string; file?: string; includePaths: string; indentType: 0 | 1; indentWidth: number; linefeed: "\r" | "\r\n" | "\n" | "\n\r"; precision: 10; result: { stats: { entry: string; start: number } }; style: 1 }

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

Type declaration

© 2006–2022 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/interfaces/LegacyImporterThis