fix(@angular-devkit/build-webpack): correct webpack typings issue

This commit is contained in:
Charles Lyding 2020-01-02 19:08:40 -05:00 committed by Minko Gechev
parent 453f33fd57
commit 53e1ef0210

View File

@ -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),