Skip to content

Commit

Permalink
fix: the return value of resolve by adding a namespace when processin…
Browse files Browse the repository at this point in the history
…g a '@' in filter (vitejs#3534)
  • Loading branch information
ygj6 authored and aleclarson committed Nov 8, 2021
1 parent e9bbb12 commit e0c887c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vite/src/node/optimizer/scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,11 @@ function esbuildScanPlugin(
}
return externalUnlessEntry({ path: id })
} else {
const namespace = htmlTypesRE.test(resolved) ? 'html' : undefined
// linked package, keep crawling
return {
path: path.resolve(resolved)
path: path.resolve(resolved),
namespace
}
}
} else {
Expand Down

0 comments on commit e0c887c

Please sign in to comment.