Commit 74a7f71 1 parent ef41e5b commit 74a7f71 Copy full SHA for 74a7f71
File tree 1 file changed +3
-3
lines changed
packages/vite/src/node/plugins
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -330,10 +330,8 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin {
330
330
)
331
331
}
332
332
333
- url = resolved . id
334
-
335
333
if ( isExternalUrl ( url ) ) {
336
- return [ url , url ]
334
+ return [ resolved . id , resolved . id ]
337
335
}
338
336
339
337
const isRelative = url [ 0 ] === '.'
@@ -351,6 +349,8 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin {
351
349
// an optimized deps may not yet exists in the filesystem, or
352
350
// a regular file exists but is out of root: rewrite to absolute /@fs / paths
353
351
url = path . posix . join ( FS_PREFIX , resolved . id )
352
+ } else {
353
+ url = resolved . id
354
354
}
355
355
356
356
// if the resolved id is not a valid browser import specifier,
You can’t perform that action at this time.
0 commit comments