From 6eb72e739d03cf664eda54e06ec93853e222cd15 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Thu, 2 Jan 2020 19:08:40 -0500 Subject: [PATCH] fix(@angular-devkit/build-webpack): correct webpack typings issue --- packages/angular_devkit/build_webpack/src/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_webpack/src/utils.ts b/packages/angular_devkit/build_webpack/src/utils.ts index 4cf61464e1fa..5741d41412f4 100644 --- a/packages/angular_devkit/build_webpack/src/utils.ts +++ b/packages/angular_devkit/build_webpack/src/utils.ts @@ -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),