Skip to content

Commit

Permalink
Automation: main-next integrate
Browse files Browse the repository at this point in the history
  • Loading branch information
msfluid-bot committed Jul 28, 2023
2 parents b20a44c + e9e63b8 commit ac64c1f
Show file tree
Hide file tree
Showing 16 changed files with 1,302 additions and 955 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ export function getChunkParsedSize(stats: StatsCompilation, chunkId: string | nu
return false;
});

if (matchingAsset === undefined) {
throw new Error(`Could not find asset for chunk with id '${chunkId}' in the webpack stats`);
}

return matchingAsset.size;
// If there's no matching asset it could be that it was removed in the new version of the bundle, not necessarily an
// error. In that case return 0 as its size.
return matchingAsset?.size ?? 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const EncodedChangeAtomId = Type.Object(
/**
* Uniquely identifies the changeset within which the change was made.
*/
revision: Type.Union([RevisionTagSchema, Type.Undefined()]),
revision: Type.Optional(RevisionTagSchema),
/**
* Uniquely identifies, in the scope of the changeset, the change made to the field.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface ChangeAtomId {
* Uniquely identifies the changeset within which the change was made.
* Only undefined when referring to an anonymous changesets.
*/
readonly revision: RevisionTag | undefined;
readonly revision?: RevisionTag;
/**
* Uniquely identifies, in the scope of the changeset, the change made to the field.
*/
Expand Down
Loading

0 comments on commit ac64c1f

Please sign in to comment.