Skip to content

Commit

Permalink
fix: all export creation in separate module to avoid tree-shake issue
Browse files Browse the repository at this point in the history
  • Loading branch information
damyanpetev committed Oct 9, 2024
1 parent 2686a2b commit 7fbbe3e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
22 changes: 22 additions & 0 deletions src/all.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { content } from './content';
import { construction } from './construction';
import { editor } from './editor';
import { elections } from './election';
import { finance } from './finance';
import { health } from './health';
import { logos } from './logos';
import { programming } from './programming';
import { socialMedia } from './socialMedia';
import type { IMXIcon } from './common/icon';

export const all: IMXIcon[] = [
...content,
...construction,
...editor,
...elections,
...finance,
...health,
...logos,
...programming,
...socialMedia,
];
23 changes: 2 additions & 21 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
import { content } from './content';
import { construction } from './construction';
import { editor } from './editor';
import { elections } from './election';
import { finance } from './finance';
import { health } from './health';
import { logos } from './logos';
import { programming } from './programming';
import { socialMedia } from './socialMedia';
import type { IMXIcon } from './common/icon';

export * from './content';
Expand All @@ -19,17 +10,7 @@ export * from './logos';
export * from './programming';
export * from './socialMedia';

export { all } from './all';

export { IconCategory, IconCategoryEnum } from './common/icon';
export type { IMXIcon };

export const all: IMXIcon[] = [
...content,
...construction,
...editor,
...elections,
...finance,
...health,
...logos,
...programming,
...socialMedia,
];

0 comments on commit 7fbbe3e

Please sign in to comment.