Skip to content

Commit

Permalink
make chunk size field optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sofen-ag committed Oct 31, 2024
1 parent 8b76348 commit 07aced9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface WebpackBuildData extends CommonMetadata {
}

export interface ViteBundleStats {
bootstrapChunkSizeBytes: number
bootstrapChunkSizeBytes?: number
bootstrapChunkSizeLimitBytes?: number
}

Expand Down
2 changes: 1 addition & 1 deletion src/viteBuildStatsPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function viteBuildStatsPlugin(
): Plugin {
let buildStart: number;
let buildEnd: number;
let bootstrapChunkSizeBytes: number;
let bootstrapChunkSizeBytes: number | undefined = undefined;
let rollupVersion: string | undefined = undefined;

return {
Expand Down

0 comments on commit 07aced9

Please sign in to comment.