Skip to content

Commit 9c2646c

Browse files
authored
build(partners): treeshake partners
1 parent 5d333e8 commit 9c2646c

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

apps/site/util/partners/index.tsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
1-
import * as PartnersLogo from '@node-core/ui-components/Icons/PartnerLogos';
1+
import {
2+
CLOUDFLARE,
3+
DIGITALOCEAN,
4+
MICROSOFT,
5+
HERODEVS,
6+
NODESOURCE,
7+
VERCEL,
8+
} from '@node-core/ui-components/Icons/PartnerLogos';
29
import type { ElementType } from 'react';
310

411
import type { Partners } from '#site/types';
512

13+
const PartnersLogo: Record<string, Record<string, ElementType>> = {
14+
CLOUDFLARE,
15+
DIGITALOCEAN,
16+
MICROSOFT,
17+
HERODEVS,
18+
NODESOURCE,
19+
VERCEL,
20+
};
21+
622
/**
723
* Creates an icon element for a component
824
*/

0 commit comments

Comments
 (0)