Skip to content

Commit

Permalink
catch error
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Dec 19, 2024
1 parent 7a83dfe commit d17d16f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vite/src/node/plugins/importAnalysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,9 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin {
// normalize and rewrite accepted urls
const normalizedAcceptedUrls = new Set<string>()
for (const { url, start, end } of acceptedUrls) {
let [normalized, resolvedId] = await normalizeUrl(url, start)
let [normalized, resolvedId] = await normalizeUrl(url, start).catch(
() => [],
)
if (resolvedId) {
const mod = moduleGraph.getModuleById(resolvedId)
if (!mod) {
Expand Down

0 comments on commit d17d16f

Please sign in to comment.