Dela via


ImportMapDefinition Class

Definition

Represents the contents of a element that defines the import map for module scripts in the application.

public sealed class ImportMapDefinition
type ImportMapDefinition = class
Public NotInheritable Class ImportMapDefinition
Inheritance
ImportMapDefinition

Remarks

The import map is a JSON object that defines the mapping of module import specifiers to URLs. ImportMapDefinition instances are expensive to create, so it is recommended to cache them if you are creating an additional instance.

Constructors

ImportMapDefinition(IReadOnlyDictionary<String,String>, IReadOnlyDictionary<String, IReadOnlyDictionary<String,String>>, IReadOnlyDictionary<String, String>)

Initializes a new instance of ImportMapDefinition."/> with the specified imports, scopes, and integrity.

Properties

Imports

Gets the unscoped imports defined in the import map.

Integrity

Gets the integrity properties defined in the import map.

Scopes

Gets the scoped imports defined in the import map.

Methods

Combine(ImportMapDefinition[])

Combines one or more import maps into a single import map.

FromResourceCollection(ResourceAssetCollection)

Creates an import map from a ResourceAssetCollection.

ToString()

Returns a string that represents the current object.

Applies to