-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpack issue with DLL #15601
Comments
Is this issue specific to Material-UI? Do you have a reproduction example? |
It is not specific to Material-UI. However, the users of Material-UI are affected by the decision to use React Hooks, and this specific downside is not documented. The problem is due to the transformation that happens when prebundling React Hooks. The transformation makes the React Hooks non-functional. No, sorry, I don't have a full reproduction example. |
@o-alexandrov Thanks. I have experienced a similar same problem trying to upgrade to a more recent version of Next.js. |
Did anyone find any solution to make this work with dll builds? |
Expected Behavior 🤔
Using a tool like webpack and its plugin webpack dll plugin,
The MaterialUI library should work if prebundled to use as a DLL for better (faster) use in development.
Current Behavior 😯
Hooks become broken if used as part of the prebundled DLL.
See facebook/react#15447
Context 🔦
It negatively affects performance, as the library could have been prebundled optimizing the work of webpack for the use in development.
The text was updated successfully, but these errors were encountered: