@@ -204,11 +204,6 @@ const productGroups: GroupingRule[] = [
204204 patterns : [ '**/packages/rewards-hub/**' ] ,
205205 icon : '🏆' ,
206206 } ,
207- {
208- title : 'Reporting Package' ,
209- patterns : [ '**/packages/reporting/**' ] ,
210- icon : '📊' ,
211- } ,
212207 {
213208 title : 'Migration Kit Package' ,
214209 patterns : [ '**/packages/migration-kit/**' ] ,
@@ -219,26 +214,11 @@ const productGroups: GroupingRule[] = [
219214 patterns : [ '**/packages/loaders-lib/**' ] ,
220215 icon : '📦' ,
221216 } ,
222- {
223- title : 'GitLab Data Access Package' ,
224- patterns : [ '**/packages/gitlab-data-access/**' ] ,
225- icon : '🔗' ,
226- } ,
227217 {
228218 title : 'Geo Coordinator Lib Package' ,
229219 patterns : [ '**/packages/geo-coordinator-lib/**' ] ,
230220 icon : '🌍' ,
231221 } ,
232- {
233- title : 'ESBuild Plugins Package' ,
234- patterns : [ '**/packages/esbuild-plugins/**' ] ,
235- icon : '🔌' ,
236- } ,
237- {
238- title : 'ESLint Utils Package' ,
239- patterns : [ '**/packages/eslint-utils/**' ] ,
240- icon : '🔧' ,
241- } ,
242222 {
243223 title : 'Extractor App Package' ,
244224 patterns : [ '**/packages/extractor-app/**' ] ,
@@ -249,26 +229,6 @@ const productGroups: GroupingRule[] = [
249229 patterns : [ '**/packages/gantry-app/**' ] ,
250230 icon : '🏗️' ,
251231 } ,
252- {
253- title : 'Moxxi Test Utils Package' ,
254- patterns : [ '**/packages/moxxi-test-utils/**' ] ,
255- icon : '🧪' ,
256- } ,
257- {
258- title : 'NX Plugin Package' ,
259- patterns : [ '**/packages/nx-plugin/**' ] ,
260- icon : '⚙️' ,
261- } ,
262- {
263- title : 'RTMS Test App Package' ,
264- patterns : [ '**/packages/rtms-test-app/**' ] ,
265- icon : '🧪' ,
266- } ,
267- {
268- title : 'SFAPI Smoke Test Package' ,
269- patterns : [ '**/packages/sfapi-smoke-test/**' ] ,
270- icon : '💨' ,
271- } ,
272232 {
273233 title : 'Device Atlas Smoke Test Package' ,
274234 patterns : [ '**/packages/device-atlas-smoke-test/**' ] ,
@@ -286,57 +246,6 @@ const productGroups: GroupingRule[] = [
286246 } ,
287247] ;
288248
289- const badGroups : GroupingRule [ ] = [
290- {
291- title : 'Test Web App Package' ,
292- patterns : [ '**/packages/testweb-app/**' ] ,
293- } ,
294- // 🚨 CRITICAL: Files that shouldn't be in production - these are important findings!
295- {
296- title : '🚨 Test Files in Production' ,
297- patterns : [
298- '**/node_modules/**/*.test.js' ,
299- '**/node_modules/**/*.spec.js' ,
300- '**/node_modules/**/test/**' ,
301- '**/node_modules/**/tests/**' ,
302- '**/node_modules/**/__tests__/**' ,
303- ] ,
304- } ,
305- {
306- title : '🚨 📚 Documentation in Production' ,
307- patterns : [
308- '**/node_modules/**/demo/**' ,
309- '**/node_modules/**/examples/**' ,
310- '**/node_modules/**/docs/**' ,
311- '**/node_modules/**/*.md' ,
312- '**/node_modules/**/README*' ,
313- '**/node_modules/**/CHANGELOG*' ,
314- '**/node_modules/**/LICENSE*' ,
315- ] ,
316- icon : '📄' ,
317- } ,
318- {
319- title : '🛠️ Dev Tools in Production' ,
320- patterns : [
321- '**/node_modules/**/webpack.config.js' ,
322- '**/node_modules/**/rollup.config.js' ,
323- '**/node_modules/**/jest.config.js' ,
324- '**/node_modules/**/.eslintrc*' ,
325- '**/node_modules/**/.babelrc*' ,
326- '**/node_modules/**/tsconfig*.json' ,
327- ] ,
328- icon : '🔧' ,
329- } ,
330- {
331- title : 'E2E Test Framework Package' ,
332- patterns : [ '**/packages/e2e-test-framework/**' ] ,
333- icon : '🧪' ,
334- } ,
335- ] . map ( group => ( {
336- ...group ,
337- icon : '⚠️' ,
338- } ) ) ;
339-
340249const config = {
341250 plugins : [
342251 await bundleStatsPlugin ( {
@@ -354,12 +263,11 @@ const config = {
354263 blacklist,
355264 } ,
356265 } ,
357- insights : [
266+ insightsTable : [
358267 ...productGroups , // Process product groups first for better specificity
359- ...badGroups , // Process bad/warning groups second
360268 ...nodeModulesGroup , // Process general node_modules groups last
361269 ] ,
362- artefactTree : {
270+ dependencyTree : {
363271 groups : [
364272 ...productGroups , // Process product groups first for better specificity
365273 ...nodeModulesGroup , // Process general node_modules groups last
@@ -376,7 +284,7 @@ const config = {
376284 description : 'All files in the bundle' ,
377285 selection : {
378286 // Use specific includeOutputs instead of global include for better control
379- include : [ '**/*.js ' ] ,
287+ includeOutputs : [ '**/*' ] ,
380288 // Exclude patterns to filter out unwanted files
381289 excludeOutputs : [
382290 '**/*.map' , // Source maps
@@ -391,9 +299,8 @@ const config = {
391299 // Initial bundle size audit
392300 {
393301 title : 'Initial Bundle Size' ,
394- slug : 'initial-bundle-size' ,
395302 description :
396- 'Initial bundle size audit for main and polyfills bundles' ,
303+ 'Initial bundle size audit for main and polyfills bundles as well as styles assets ' ,
397304 selection : {
398305 includeOutputs : [
399306 '**/main-*.js' ,
0 commit comments