@@ -12,9 +12,12 @@ import { BundleStatsAuditOptions } from './src/lib/types';
1212const SELECTION_ALL_OUTPUTS = {
1313 includeOutputs : [ '**/*' ] ,
1414} ;
15+
16+ const SELECTION_OUTPUTS_INDEX_FILE = [ '**/index.ts' ] ;
17+
1518const SELECTION_ONE_FILE = {
1619 mode : 'bundle' as const ,
17- includeOutputs : [ '**/chunks/chunk-PKX4VJZC.js' ] ,
20+ includeOutputs : SELECTION_OUTPUTS_INDEX_FILE ,
1821} ;
1922// ===== Scoring Constants =====
2023
@@ -105,7 +108,7 @@ const SELECTION_AUDITS: BundleStatsAuditOptions[] = [
105108 ...BASE_AUDIT_ALL_FILES_SCORING_DISABLED ,
106109 selection : {
107110 mode : 'bundle' ,
108- includeOutputs : [ '**/index.js' ] ,
111+ includeOutputs : SELECTION_OUTPUTS_INDEX_FILE ,
109112 } ,
110113 dependencyTree : {
111114 pruning : {
@@ -132,7 +135,7 @@ const SELECTION_AUDITS: BundleStatsAuditOptions[] = [
132135 ...BASE_AUDIT_ALL_FILES_SCORING_DISABLED ,
133136 selection : {
134137 mode : 'withStartupDeps' ,
135- includeOutputs : [ '**/index.js' ] ,
138+ includeOutputs : SELECTION_OUTPUTS_INDEX_FILE ,
136139 } ,
137140 } ,
138141 {
@@ -143,7 +146,7 @@ const SELECTION_AUDITS: BundleStatsAuditOptions[] = [
143146 ...BASE_AUDIT_ALL_FILES_SCORING_DISABLED ,
144147 selection : {
145148 mode : 'withAllDeps' ,
146- includeOutputs : [ '**/index.js' ] ,
149+ includeOutputs : SELECTION_OUTPUTS_INDEX_FILE ,
147150 } ,
148151 } ,
149152
@@ -155,7 +158,7 @@ const SELECTION_AUDITS: BundleStatsAuditOptions[] = [
155158 ...BASE_AUDIT_ALL_FILES_SCORING_DISABLED ,
156159 selection : {
157160 mode : 'bundle' ,
158- includeOutputs : [ '**/chunks/chunk-*.js' ] ,
161+ includeOutputs : SELECTION_OUTPUTS_INDEX_FILE ,
159162 } ,
160163 } ,
161164 {
0 commit comments