class PreFetchedContentFetcher
implements IContentFetcher
Fetches content from a pre-populated content map. This allows compilation without network or file system access.
new
PreFetchedContentFetcher(content: PreFetchedContent)
Creates a new PreFetchedContentFetcher
private
readonly
contentMap: Map<string, string>
addContent(source: string,content: string,): void
Adds content to the map (useful for dynamic content loading).
canHandle(source: string): boolean
Checks if content is available for the given source.
fetch(source: string): Promise<string>
Returns the pre-fetched content for the source.
getSources(): string[]
Returns all available source identifiers.
removeContent(source: string): boolean
Removes content from the map.