-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Build as a multi-repository #7839
Comments
I have been giving some thought about this option in the past. I have even migrated one of my repositories to lerna. My conclusion was: it doesn't worth it for Material-UI. Pros:
Cons:
Other:
Unless I'm missing something, I haven't changed my mind yet. |
Oh, and we already have some other packages:
|
Sorry I wasn't clear about this part. Of course you should not remove |
@umidbekkarimov Doesn't this index requires a more complex tree shaking solution? Also, Lodash is doing something similar. I have never understood the motivation, I have always thought it was doing more harm than good to the community as increasing the module duplication likelihood for some unclear advantage. On the other hand, this seems to fit well for Babel needs. |
Side note: This PR webpack/webpack#5435 will kill all Tree Shaking issues of material-ui, of course with few changes in index.es file. (rip babel-plugin-direct-import)
I agree, it was overkill in case of lodash.
🤔 I only see the benefits in seamless migration to v1 (but as you said it can be done with yarn). |
I'm closing the issue, as always in OSS a no is temporary. We will see if more voices are raised to go into this direction. Right now, I don't think that that change is worth the effort as a maintainer. I would rather see some other issues prioritized. Thanks for the discussion, it's a good seed 👍 . |
I went back to this issue. It's haunting me. We are now releasing 5 different packages. They are hosted under the The pros:
The cons:
|
That being said, #6218 could be a good candidate for multi-repository, to evaluate. |
Lot of us currently using stable version and it would be much easier to migrate each component separately.
So at the start we will be able to load components separately:
Idea from material-components.
Where user can install whole lib from
material-components-web
repo or each component separately from@material/*
.See lerna.
The text was updated successfully, but these errors were encountered: