Skip to content

Commit

Permalink
fix(bundle-analyzer): fix stream decode error
Browse files Browse the repository at this point in the history
  • Loading branch information
EYHN committed Dec 13, 2022
1 parent abf6783 commit 71023a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bundle-analyzer/src/bundle-extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export async function readStatsFile(path: string): Promise<PerfseeReportStats> {
const buf = readFileSync(path)
return decode(buf) as PerfseeReportStats
} else {
return (await decodeStream(createReadStream(path).pipe(createGunzip()))) as PerfseeReportStats
return (await decodeStream(createReadStream(path))) as PerfseeReportStats
}
} else {
throw new Error('unsupported stats file encoding.')
Expand Down

0 comments on commit 71023a2

Please sign in to comment.