Skip to content

Commit

Permalink
fix(optimizer): exclude should not be resolve (#1469)
Browse files Browse the repository at this point in the history
  • Loading branch information
CHOYSEN committed Jan 10, 2021
1 parent f3ab497 commit f8c34ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ async function resolveQualifiedDeps(
const pkg = JSON.parse(pkgContent)
const deps = Object.keys(pkg.dependencies || {})
const linked: string[] = []
const excludeFilter = exclude && createFilter(exclude)
const excludeFilter =
exclude && createFilter(exclude, null, { resolve: false })

for (const id of deps) {
if (include && include.includes(id)) {
Expand Down

0 comments on commit f8c34ee

Please sign in to comment.