projecte_ionic/node_modules/@ngtools/webpack/src/resource_loader.d.ts
2022-02-09 18:30:03 +01:00

30 lines
1.2 KiB
TypeScript
Executable file

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import type { Compilation } from 'webpack';
export declare class WebpackResourceLoader {
private _parentCompilation?;
private _fileDependencies;
private _reverseDependencies;
private fileCache?;
private assetCache?;
private modifiedResources;
private outputPathCounter;
private readonly inlineDataLoaderPath;
constructor(shouldCache: boolean);
update(parentCompilation: Compilation, changedFiles?: Iterable<string>): void;
clearParentCompilation(): void;
getModifiedResourceFiles(): Set<string>;
getResourceDependencies(filePath: string): Set<string> | never[];
getAffectedResources(file: string): Set<string> | never[];
setAffectedResources(file: string, resources: Iterable<string>): void;
private _compile;
private _evaluate;
get(filePath: string): Promise<string>;
process(data: string, mimeType: string | undefined, fileExtension: string | undefined, resourceType: 'template' | 'style', containingFile?: string): Promise<string>;
}