diff --git a/packages/utils/src/config/component-links.js b/packages/utils/src/config/component-links.js index d0415f7ff5..c8a28add3b 100644 --- a/packages/utils/src/config/component-links.js +++ b/packages/utils/src/config/component-links.js @@ -17,6 +17,7 @@ export const MODULE_FILTERS = { DUPLICATED: 'md', FIRST_PARTY: 'fp', THIRD_PARTY: 'tp', + METRIC: 'metric', }; export const PACKAGE_FILTERS = { diff --git a/packages/utils/src/utils/component-links.ts b/packages/utils/src/utils/component-links.ts index 5e0f406f8f..111ef5fb35 100644 --- a/packages/utils/src/utils/component-links.ts +++ b/packages/utils/src/utils/component-links.ts @@ -30,7 +30,7 @@ import { } from '../config/component-links'; import I18N from '../i18n'; -export type ComponentLinkFilters = Record; +export type ComponentLinkFilters = Record; export interface ComponentLinkParams { search?: string; @@ -224,6 +224,7 @@ export const BUNDLE_MODULES: ComponentLink = { // Keep a filter to allow the merge and skip default [MODULE_FILTERS.CHANGED]: false, }, + [MODULE_FILTERS.METRIC]: 'totalSize', }, }, }; @@ -237,6 +238,7 @@ export const BUNDLE_MODULES_DUPLICATE: ComponentLink = { [MODULE_FILTERS.CHANGED]: false, [MODULE_FILTERS.DUPLICATED]: true, }, + [MODULE_FILTERS.METRIC]: 'duplicateSize', }, }, };