Skip to content

Commit

Permalink
refactor: use http-compression dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 25, 2023
1 parent 9adb2a3 commit 2598dea
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 118 deletions.
1 change: 1 addition & 0 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
"estree-walker": "^3.0.3",
"etag": "^1.8.1",
"fast-glob": "^3.2.12",
"http-compression": "^1.0.2",
"http-proxy": "^1.18.1",
"json-stable-stringify": "^1.0.2",
"launch-editor-middleware": "^2.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/node/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import sirv from 'sirv'
import connect from 'connect'
import type { Connect } from 'dep-types/connect'
import corsMiddleware from 'cors'
import compression from 'http-compression'
import type { ResolvedServerOptions, ResolvedServerUrls } from './server'
import type { CommonServerOptions } from './http'
import {
Expand All @@ -13,7 +14,6 @@ import {
setClientErrorHandler,
} from './http'
import { openBrowser } from './server/openBrowser'
import compression from './server/middlewares/compression'
import { proxyMiddleware } from './server/middlewares/proxy'
import { resolveHostname, resolveServerUrls, shouldServeFile } from './utils'
import { printServerUrls } from './logger'
Expand Down
117 changes: 0 additions & 117 deletions packages/vite/src/node/server/middlewares/compression.ts

This file was deleted.

7 changes: 7 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 2598dea

Please sign in to comment.