File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -372,10 +372,6 @@ export default (opts: PluginOptions = {}): vite.Plugin => {
372
372
logFile ?. write ( 'relativeId' , { importer, id } )
373
373
return
374
374
}
375
- if ( path . isAbsolute ( id ) ) {
376
- logFile ?. write ( 'absoluteId' , { importer, id } )
377
- return
378
- }
379
375
if ( id . includes ( '\0' ) ) {
380
376
logFile ?. write ( 'virtualId' , { importer, id } )
381
377
return
@@ -472,6 +468,10 @@ export default (opts: PluginOptions = {}): vite.Plugin => {
472
468
473
469
const resolveWithBaseUrl : InternalResolver | undefined = baseUrl
474
470
? async ( viteResolve , id , importer ) => {
471
+ if ( id [ 0 ] === '/' ) {
472
+ return
473
+ }
474
+
475
475
const absoluteId = join ( baseUrl , id )
476
476
debug ( 'Trying with baseUrl:' , absoluteId )
477
477
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ export type LogEvent =
11
11
| [ 'virtualImporter' , ImportDetails ]
12
12
| [ 'unsupportedExtension' , ImportDetails ]
13
13
| [ 'relativeId' , ImportDetails ]
14
- | [ 'absoluteId' , ImportDetails ]
15
14
| [ 'virtualId' , ImportDetails ]
16
15
| [ 'resolvedWithBaseUrl' , ResolveDetails ]
17
16
| [ 'resolvedWithPaths' , ResolveDetails ]
You can’t perform that action at this time.
0 commit comments