rtivital / mantine-v7

Mantine v7 migration
https://v7.mantine.dev
MIT License
127 stars 24 forks source link

When using "Rating" component in next.js, the bundle size increases significantly during the build process. #11

Open SinaShateri opened 1 year ago

SinaShateri commented 1 year ago

What package has an issue

@mantine/core

Describe the bug

I use new alpha version of mantine v7 and found that "Rating" component increases significantly bundle size. using next.js 13.4.9 app router. Here is two screen shots with before and after using it:

Before: image

After: image

What version of @mantine/hooks page do you have in package.json?

7.0.0-alpha.19

If possible, please include a link to a codesandbox with the reproduced problem

No response

Do you know how to fix the issue

No

Are you willing to participate in fixing this issue and create a pull request with the fix

No

Possible fix

No response

rtivital commented 1 year ago

Issue with Next.js, see https://github.com/vercel/next.js/issues/49742

imranbarbhuiya commented 1 year ago

can u make mantine folder structure to support modularizeImports?

rtivital commented 1 year ago

No, I'm not planning to work on that