Skip to content

Commit 6eb72e7

Browse files
clydinmgechev
authored andcommitted
fix(@angular-devkit/build-webpack): correct webpack typings issue
1 parent c188887 commit 6eb72e7

File tree

1 file changed

+3
-1
lines changed
  • packages/angular_devkit/build_webpack/src

1 file changed

+3
-1
lines changed

packages/angular_devkit/build_webpack/src/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ export function getEmittedFiles(compilation: webpack.compilation.Compilation): E
2525
for (const chunk of compilation.chunks as webpack.compilation.Chunk[]) {
2626
for (const file of chunk.files as string[]) {
2727
files.push({
28-
id: chunk.id.toString(),
28+
// The id is guaranteed to exist at this point in the compilation process
29+
// tslint:disable-next-line: no-non-null-assertion
30+
id: chunk.id!.toString(),
2931
name: chunk.name,
3032
file,
3133
extension: path.extname(file),

0 commit comments

Comments
 (0)