mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
fix(@angular-devkit/build-webpack): correct webpack typings issue
This commit is contained in:
parent
453f33fd57
commit
53e1ef0210
@ -25,7 +25,9 @@ export function getEmittedFiles(compilation: webpack.compilation.Compilation): E
|
|||||||
for (const chunk of compilation.chunks as webpack.compilation.Chunk[]) {
|
for (const chunk of compilation.chunks as webpack.compilation.Chunk[]) {
|
||||||
for (const file of chunk.files as string[]) {
|
for (const file of chunk.files as string[]) {
|
||||||
files.push({
|
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,
|
name: chunk.name,
|
||||||
file,
|
file,
|
||||||
extension: path.extname(file),
|
extension: path.extname(file),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user