Skip to content

Commit

Permalink
fix(@angular-devkit/build-webpack): correct webpack typings issue
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and mgechev committed Jan 4, 2020
1 parent c188887 commit 6eb72e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/angular_devkit/build_webpack/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export function getEmittedFiles(compilation: webpack.compilation.Compilation): E
for (const chunk of compilation.chunks as webpack.compilation.Chunk[]) {
for (const file of chunk.files as string[]) {
files.push({
id: chunk.id.toString(),
// The id is guaranteed to exist at this point in the compilation process
// tslint:disable-next-line: no-non-null-assertion
id: chunk.id!.toString(),
name: chunk.name,
file,
extension: path.extname(file),
Expand Down

0 comments on commit 6eb72e7

Please sign in to comment.