Skip to content

Commit

Permalink
fix: brotli let for reassignment (#7544)
Browse files Browse the repository at this point in the history
  • Loading branch information
onevt committed Mar 31, 2022
1 parent 87fbe13 commit d0253d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/middlewares/compression.ts
Expand Up @@ -13,7 +13,7 @@ const noop = () => {}
const mimes = /text|javascript|\/json|xml/i
const threshold = 1024
const level = -1
const brotli = false
let brotli = false
const gzip = true

const getChunkSize = (chunk, enc) => (chunk ? Buffer.byteLength(chunk, enc) : 0)
Expand Down

0 comments on commit d0253d7

Please sign in to comment.