From 4ab0f43dd032b3f16991bbdc5b320b00b99ce7e4 Mon Sep 17 00:00:00 2001 From: suguanYang Date: Mon, 9 Oct 2023 15:30:44 +0800 Subject: [PATCH] Update packages/vite/src/node/plugins/importAnalysis.ts Co-authored-by: Bjorn Lu --- packages/vite/src/node/plugins/importAnalysis.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/plugins/importAnalysis.ts b/packages/vite/src/node/plugins/importAnalysis.ts index 2af1e02be4b404..4720244fae6f6c 100644 --- a/packages/vite/src/node/plugins/importAnalysis.ts +++ b/packages/vite/src/node/plugins/importAnalysis.ts @@ -330,7 +330,7 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin { ) } - if (isExternalUrl(url)) { + if (isExternalUrl(resolved.id)) { return [resolved.id, resolved.id] }