Skip to content
AXIcons
AXIcons
Theme

Tree shaking and bundle size

How AXIcons stays small in your bundle, with measured sizes.

How it works

All icons live in one ES module per package. Each export is a plain literal or a /*#__PURE__*/ call, and every package declares "sideEffects": false, so bundlers drop the icons you don't import.

Measured sizes

The project measured these with esbuild (--bundle --minify, React external):

ImportMinifiedGzip
IconCamera + IconHeartFilled from @axcore/xicons-react1.0 kB0.66 kB
IconCamera + toSvg from @axcore/xicons0.75 kBnot measured

What defeats it

  • import * as Icons with a dynamic lookup.
  • The brand Icon component or getIconSvg: each loads the brand registry.
  • CommonJS interop layers that wrap the package.

Something wrong or missing?Open an issue

Jump to
Browse all iconsIcon library
InstallationGetting started
Quick startGetting started
ReactIntegrations
React NativeIntegrations
↑↓ navigateopen⌘K toggle