Skip to content

Commit

Permalink
fix(optimizer): handle rollup plugin virtual ids
Browse files Browse the repository at this point in the history
fix #1804
  • Loading branch information
yyx990803 committed Jan 29, 2021
1 parent 73578d8 commit a748896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/optimizer/scan.ts
Expand Up @@ -347,7 +347,7 @@ async function transformGlob(source: string, importer: string) {

export function shouldExternalizeDep(resolvedId: string, rawId?: string) {
// virtual id
if (resolvedId === rawId) {
if (resolvedId === rawId || resolvedId.includes('\0')) {
return true
}
// browser external
Expand Down

0 comments on commit a748896

Please sign in to comment.