@@ -218,10 +218,9 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin {
218
218
}
219
219
220
220
const ssr = options ?. ssr === true
221
- const prettyImporter = prettifyUrl ( importer , root )
222
221
223
222
if ( canSkipImportAnalysis ( importer ) ) {
224
- debug ?.( colors . dim ( `[skipped] ${ prettyImporter } ` ) )
223
+ debug ?.( colors . dim ( `[skipped] ${ prettifyUrl ( importer , root ) } ` ) )
225
224
return null
226
225
}
227
226
@@ -258,7 +257,9 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin {
258
257
if ( ! imports . length && ! ( this as any ) . _addedImports ) {
259
258
importerModule . isSelfAccepting = false
260
259
debug ?.(
261
- `${ timeFrom ( start ) } ${ colors . dim ( `[no imports] ${ prettyImporter } ` ) } ` ,
260
+ `${ timeFrom ( start ) } ${ colors . dim (
261
+ `[no imports] ${ prettifyUrl ( importer , root ) } ` ,
262
+ ) } `,
262
263
)
263
264
return source
264
265
}
@@ -702,7 +703,7 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin {
702
703
: acceptedUrls . size
703
704
? `[accepts-deps]`
704
705
: `[detected api usage]`
705
- } ${ prettyImporter } `,
706
+ } ${ prettifyUrl ( importer , root ) } `,
706
707
)
707
708
// inject hot context
708
709
str ( ) . prepend (
@@ -784,7 +785,10 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin {
784
785
785
786
debug ?.(
786
787
`${ timeFrom ( start ) } ${ colors . dim (
787
- `[${ importedUrls . size } imports rewritten] ${ prettyImporter } ` ,
788
+ `[${ importedUrls . size } imports rewritten] ${ prettifyUrl (
789
+ importer ,
790
+ root ,
791
+ ) } `,
788
792
) } `,
789
793
)
790
794
0 commit comments