Skip to content

Commit

Permalink
fix: Revert "feat: allow browser new window view source (#1496)"
Browse files Browse the repository at this point in the history
This reverts commit 1629c54.

close #1507
  • Loading branch information
yyx990803 committed Jan 12, 2021
1 parent 5fc1ea7 commit 64fde38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/server/middlewares/transform.ts
Expand Up @@ -39,6 +39,7 @@ export function transformMiddleware(
return async (req, res, next) => {
if (
req.method !== 'GET' ||
req.headers.accept?.includes('text/html') ||
knownIgnoreList.has(req.url!)
) {
return next()
Expand Down

0 comments on commit 64fde38

Please sign in to comment.