-
I notice that by adding MenuItemCheckbox,MenuBar,MenuItem the gzipped bundle size increases by 17kb, of which popperjs/core is 7kb. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Popper.js is used to correctly position the menu popover. I'm afraid there's only so much we can do about this. :/ |
Beta Was this translation helpful? Give feedback.
-
I'm giving Ariakit a go to replace an unmaintained menu library in a Vite/React/TypeScript project. Just adding the following import and rendering a menu with some items increases my app's minified bundle size by 128 kB (38 kB gzipped): import { Menu, MenuButton, MenuItem, MenuProvider } from '@ariakit/react'; While I really love the result (great API, great accessibility, etc.), this does feel excessive. 😟 When I analyze the bundle with source-map-explorer, it does seem that tree-shaking works (at least partly), since I only see one named module called For
|
Beta Was this translation helpful? Give feedback.
Popper.js is used to correctly position the menu popover. I'm afraid there's only so much we can do about this. :/