@@ -21,27 +21,6 @@ import thirdPartyWeb from '../../core/lib/third-party-web.js';
2121/** @type {BufferConstructor } */
2222globalThis . Buffer = Buffer ;
2323
24- // TODO: Remove this when insights aren't hidden by default
25- const insightAuditIds = [
26- 'cache-insight' ,
27- 'cls-culprits-insight' ,
28- 'document-latency-insight' ,
29- 'dom-size-insight' ,
30- 'duplicated-javascript-insight' ,
31- 'font-display-insight' ,
32- 'forced-reflow-insight' ,
33- 'image-delivery-insight' ,
34- 'interaction-to-next-paint-insight' ,
35- 'lcp-discovery-insight' ,
36- 'lcp-phases-insight' ,
37- 'legacy-javascript-insight' ,
38- 'modern-http-insight' ,
39- 'network-dependency-tree-insight' ,
40- 'render-blocking-insight' ,
41- 'third-parties-insight' ,
42- 'viewport-insight' ,
43- ] ;
44-
4524/**
4625 * Returns a config, which runs only certain categories.
4726 * Varies the config to use based on device.
@@ -70,13 +49,6 @@ function createConfig(categoryIDs, device) {
7049 return {
7150 extends : 'lighthouse:default' ,
7251 settings,
73- categories : {
74- // @ts -ignore: `title` is required in CategoryJson. setting to the same value as the default
75- // config is awkward - easier to omit the property here. Will defer to default config.
76- 'performance' : {
77- auditRefs : insightAuditIds . map ( id => ( { id, weight : 0 , group : 'insights' } ) ) ,
78- } ,
79- } ,
8052 } ;
8153}
8254
0 commit comments