Skip to content

Commit

Permalink
fix: always transform applicable requests (#2041)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Feb 15, 2021
1 parent 889a0ea commit 4fd61ab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/vite/src/node/server/middlewares/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ export function transformMiddleware(
} = server

return async (req, res, next) => {
if (
req.method !== 'GET' ||
req.headers.accept?.includes('text/html') ||
knownIgnoreList.has(req.url!)
) {
if (req.method !== 'GET' || knownIgnoreList.has(req.url!)) {
return next()
}

Expand Down

0 comments on commit 4fd61ab

Please sign in to comment.