@@ -308,11 +308,6 @@ function computePathRank(ranks, pathGroups, path, maxPosition) {
308
308
}
309
309
}
310
310
311
- function shouldSeparateType ( omittedTypes , impType ) {
312
- console . log ( '%c shouldSeparateType' , 'color: #b0b' , { omittedTypes, impType } ) ;
313
- return impType === 'type' && ! ( 'type' in omittedTypes ) ;
314
- }
315
-
316
311
function computeRank ( context , ranks , importEntry , excludedImportTypes ) {
317
312
let impType ;
318
313
let rank ;
@@ -323,9 +318,8 @@ function computeRank(context, ranks, importEntry, excludedImportTypes) {
323
318
} else {
324
319
impType = importType ( importEntry . value , context ) ;
325
320
}
326
- console . log ( '%c computeRank' , 'color: #b0b' , { file : importEntry . value , impType } ) ;
327
- if ( ! excludedImportTypes . has ( impType ) && ! shouldSeparateType ( ranks . omittedTypes , impType ) ) {
328
- rank = computePathRank ( ranks . groups , ranks . pathGroups , importEntry . value , ranks . maxPosition , impType ) ;
321
+ if ( ! excludedImportTypes . has ( impType ) ) {
322
+ rank = computePathRank ( ranks . groups , ranks . pathGroups , importEntry . value , ranks . maxPosition ) ;
329
323
}
330
324
if ( typeof rank === 'undefined' ) {
331
325
rank = ranks . groups [ impType ] ;
0 commit comments