diff --git a/packages/vite/src/node/build.ts b/packages/vite/src/node/build.ts index b12a757d10e3ca..e5b51ec92be040 100644 --- a/packages/vite/src/node/build.ts +++ b/packages/vite/src/node/build.ts @@ -647,14 +647,11 @@ function getPkgName(root: string) { function createMoveToVendorChunkFn(config: ResolvedConfig): GetManualChunk { const cache = new Map() 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' } } }