Skip to content

Commit

Permalink
feat(reporter): add wasm to the compressible assets regex (#19085)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivish authored Jan 23, 2025
1 parent bc851e3 commit ce84142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type LogEntry = {
mapSize: number | null
}

const COMPRESSIBLE_ASSETS_RE = /\.(?:html|json|svg|txt|xml|xhtml)$/
const COMPRESSIBLE_ASSETS_RE = /\.(?:html|json|svg|txt|xml|xhtml|wasm)$/

export function buildReporterPlugin(config: ResolvedConfig): Plugin {
const compress = promisify(gzip)
Expand Down

0 comments on commit ce84142

Please sign in to comment.