-
Notifications
You must be signed in to change notification settings - Fork 227
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
Question regarding debug dependency #713
Comments
I've been thinking about this as well. Is each of our OSS library using a different version of debug? Otherwise, I thought they would all be deduped by webpack. |
Most of them has |
I'm fine with removing debug entirely |
Its odd that webpack is not deduping it, maybe a webpack config issue? |
I mean, I'm not a webpack expert. Here we use a quite plain configuration. I tried to play with the split chunks optimization but I didn't get any further. But the issue is also visible in the examples and there you can see the webpack configuration. But anyway, I saw that you merged and released everything, thanks for that! |
in our project we set a module alias replacement to make sure all package is using the same version of app level of
|
@redonkulus there are many yahoo libraries that have
debug
as dependency. Almost all fluxible packages have it but I can also mentionfetchr
androutr
as well. Since most of these packages are not tree-shakeable, unless we do something smart with webpack, we can getdebug
andms
libraries duplicated in our bundle many times. For instance, in my bundle, the following packages are includingdebug
:debug
has a dependency onms
package and together they make 4.2kb to be parsed by the browser. This means 21kb in my case (basically the same size as lodash on fetchr prior the change we did this week).So, what do you think would be the right approach to follow here:
fetchr
one we had this week but yeah, tooling gets complex and we still have to make sure that all packages use the samedebug
version. One good thing is that we would keep the functionality.Is there anything else that we could do?
The text was updated successfully, but these errors were encountered: