Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Jan 28, 2022
1 parent 9e07062 commit a4d75bc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/vite/src/node/plugins/splitVendorChunk.ts
Expand Up @@ -22,9 +22,10 @@ export class SplitVendorChunkCache {
}
}

export function splitVendorChunk({
cache = new SplitVendorChunkCache()
} = {}): GetManualChunk {
export function splitVendorChunk(
options: { cache?: SplitVendorChunkCache } = {}
): GetManualChunk {
const cache = options.cache ?? new SplitVendorChunkCache()
return (id, { getModuleInfo }) => {
if (
id.includes('node_modules') &&
Expand Down

0 comments on commit a4d75bc

Please sign in to comment.