Replies: 2 comments 5 replies
-
Because of this i noticed there is huge delay in fast refresh 8-10 sec, When using default export i dont have any problem. |
Beta Was this translation helpful? Give feedback.
-
It's happening with just normal project set without using monorepo and also importing anything as named import from src and not from node_modules. For e.g am importing a named component CreateTerms component i did not import in pages/index but i still see it in chunk :( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have re-produced that tree shaking is broken in my monorepo project. When importing anything from material-ui/mdi-material-ui/ or my core node_module using a named import , it causes all the lib to present in the chunks. When i check lighthouse in debug mode, i could see 5mb has beee downloaded.
Please can anyone take a look at my code and see why is it not working?
Beta Was this translation helpful? Give feedback.
All reactions