Skip to content

Commit 2327ddc

Browse files
clydinalan-agius4
authored andcommitted
fixup! fix(@ngtools/webpack): remove Webpack 5 deprecation warning in resource loader
1 parent 3504c43 commit 2327ddc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/ngtools/webpack/src/resource_loader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ export class WebpackResourceLoader {
135135
let finalMap: string | undefined;
136136
if (isWebpackFiveOrHigher()) {
137137
childCompiler.hooks.compilation.tap('angular-compiler', (childCompilation) => {
138-
childCompilation.hooks.processAssets.tap('angular-compiler', () => {
138+
// tslint:disable-next-line: no-any
139+
(childCompilation.hooks as any).processAssets.tap('angular-compiler', () => {
139140
finalContent = childCompilation.assets[filePath]?.source().toString();
140141
finalMap = childCompilation.assets[filePath + '.map']?.source().toString();
141142

0 commit comments

Comments
 (0)