Skip to content

Commit

Permalink
chore: use @polka/compression (#16146)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaejunlee authored Mar 12, 2024
1 parent 30e5ae3 commit 592c95a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 118 deletions.
6 changes: 6 additions & 0 deletions packages/vite/LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,12 @@ Repository: https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.walk
---------------------------------------

## @polka/compression
License: MIT
Repository: lukeed/polka

---------------------------------------

## @polka/url
License: MIT
By: Luke Edwards
Expand Down
1 change: 1 addition & 0 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"@ampproject/remapping": "^2.3.0",
"@babel/parser": "^7.24.0",
"@jridgewell/trace-mapping": "^0.3.25",
"@polka/compression": "^1.0.0-next.25",
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-dynamic-import-vars": "^2.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/preview.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import fs from 'node:fs'
import path from 'node:path'
import sirv from 'sirv'
import compression from '@polka/compression'
import connect from 'connect'
import type { Connect } from 'dep-types/connect'
import corsMiddleware from 'cors'
Expand All @@ -19,7 +20,6 @@ import {
setClientErrorHandler,
} from './http'
import { openBrowser } from './server/openBrowser'
import compression from './server/middlewares/compression'
import { baseMiddleware } from './server/middlewares/base'
import { htmlFallbackMiddleware } from './server/middlewares/htmlFallback'
import { indexHtmlMiddleware } from './server/middlewares/indexHtml'
Expand Down
117 changes: 0 additions & 117 deletions packages/vite/src/node/server/middlewares/compression.ts

This file was deleted.

8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 592c95a

Please sign in to comment.