Skip to content

Commit

Permalink
fix: respect optimizeDeps.exclude
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Jun 1, 2022
1 parent 8be5dbc commit 828ac06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ export async function optimizeServerSsrDeps(
noExternalFilter =
noExternal === true
? (dep: unknown) => false
: createFilter(noExternal, undefined, { resolve: false })
: createFilter(noExternal, config.optimizeDeps?.exclude, {
resolve: false
})
}

const deps: Record<string, string> = {}
Expand Down

0 comments on commit 828ac06

Please sign in to comment.