ImporterResult

The result of successfully loading a stylesheet with an Importer.

Hierarchy

  • ImporterResult

Properties

contents: string

The contents of the stylesheet.

sourceMapUrl?: URL

The URL to use to link to the loaded stylesheet's source code in source maps. A file: URL is ideal because it's accessible to both browsers and other build tools, but an http: URL is also acceptable.

If this isn't set, it defaults to a data: URL that contains the contents of the loaded stylesheet.

syntax: Syntax

The syntax with which to parse contents.