mantine-window v3.1.9 — no more Tabler barrel warning (one less peer dep)

Hey everyone 👋

Small but satisfying update to mantine-window (v3.1.9) — the draggable, resizable, collapsible window component for Mantine.

What changed?

A community member spotted a LARGE_BARREL_MODULES warning when building with Vite's new Rolldown optimizer. mantine-window pulled its three control icons (close, collapse, expand) straight from the /icons-react barrel — a single module that re-exports around 6,000 icons, so the optimizer had to walk every one of them.

Why it matters (a takeaway for your own libraries)

If you ship a component library that imports just a handful of icons from a big barrel, your users' dev/SSR builds can slow down — even though production is already fine (Tabler is sideEffects: false, so tree-shaking drops the unused icons). The clean fix: inline the few icons you actually use as tiny SVGs. It's exactly what Mantine core does for its own CloseButton, and it means one less peer dependency for everyone.

That's what we did here — three inline SVGs, pixel-identical, aria-hidden for screen readers. No API changes, nothing to migrate.

I'd love your input 🙏

  • Are you using mantine-window in production? What are you building with it?

  • Any rough edges you've hit across the Mantine Extensions?

  • Which extension should we polish next?

Drop a comment below — I read every one.

📦 npm:

📖 Docs:

💻 GitHub:

5 views

Add a comment

Replies

Be the first to comment