Skip to content

Commit 306273a

Browse files
committed
refactor(@ngtools/webpack): remove unused augmentHostWithVersioning method
This method is not used. (cherry picked from commit ad19c13)
1 parent 55d7f01 commit 306273a

File tree

1 file changed

+0
-15
lines changed
  • packages/ngtools/webpack/src/ivy

1 file changed

+0
-15
lines changed

packages/ngtools/webpack/src/ivy/host.ts

-15
Original file line numberDiff line numberDiff line change
@@ -245,21 +245,6 @@ export function augmentHostWithSubstitutions(
245245
};
246246
}
247247

248-
export function augmentHostWithVersioning(host: ts.CompilerHost): void {
249-
const baseGetSourceFile = host.getSourceFile;
250-
host.getSourceFile = function (...parameters) {
251-
const file: (ts.SourceFile & { version?: string }) | undefined = baseGetSourceFile.call(
252-
host,
253-
...parameters,
254-
);
255-
if (file && file.version === undefined) {
256-
file.version = createHash('sha256').update(file.text).digest('hex');
257-
}
258-
259-
return file;
260-
};
261-
}
262-
263248
export function augmentProgramWithVersioning(program: ts.Program): void {
264249
const baseGetSourceFiles = program.getSourceFiles;
265250
program.getSourceFiles = function (...parameters) {

0 commit comments

Comments
 (0)