- load<T>(text, mappings?): Promise<T>
Parameters
- text: string
Optional
mappings: {
importMap?: Record<string, unknown>;
optionalImportEntrypoints?: string[];
optionalImportsMap?: OptionalImportMap;
secretsMap?: SecretMap;
}Optional
importMap?: Record<string, unknown>
Optional
optionalImportEntrypoints?: string[]
Optional
optionalImportsMap?: OptionalImportMap
Optional
secretsMap?: SecretMap
Returns Promise<T>