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 (#3534)
  • Loading branch information
ygj6 authored Aug 2, 2021
1 parent 21ecdac commit d4e979f
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 d4e979f

Please sign in to comment.