Skip to content

Commit

Permalink
chore: adjust code style
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyuan0704 committed Dec 24, 2021
1 parent 50595f0 commit 52149a0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/vite/src/node/build.ts
Expand Up @@ -647,14 +647,11 @@ function getPkgName(root: string) {
function createMoveToVendorChunkFn(config: ResolvedConfig): GetManualChunk {
const cache = new Map<string, boolean>()
return (id, { getModuleInfo }) => {
if (
id.includes('node_modules') &&
!isCSSRequest(id)
) {
if (id.includes('node_modules') && !isCSSRequest(id)) {
if (staticImportedByEntry(id, getModuleInfo, cache)) {
return 'vendor'
} else {
return 'async-vendor';
return 'async-vendor'
}
}
}
Expand Down

0 comments on commit 52149a0

Please sign in to comment.