Skip to content

Commit d4e979f

Browse files
authored
fix: the return value of resolve by adding a namespace when processing a '@' in filter (#3534)
1 parent 21ecdac commit d4e979f

File tree

1 file changed

+3
-1
lines changed
  • packages/vite/src/node/optimizer

1 file changed

+3
-1
lines changed

Diff for: packages/vite/src/node/optimizer/scan.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,11 @@ function esbuildScanPlugin(
282282
}
283283
return externalUnlessEntry({ path: id })
284284
} else {
285+
const namespace = htmlTypesRE.test(resolved) ? 'html' : undefined
285286
// linked package, keep crawling
286287
return {
287-
path: path.resolve(resolved)
288+
path: path.resolve(resolved),
289+
namespace
288290
}
289291
}
290292
} else {

0 commit comments

Comments
 (0)