Modularisation - redundant dependencies #148
-
Hey, I've been working on modularising my app and found out that, if a child dependency imports something, then parent doesn't need to. I noticed that there are some redundant imports in isowords and was wondering if I should track and remove them in my app or are they fine to stay there? One example: Would it make any difference if it was removed in terms of compile time or anything at all? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@Przeszaf We've preferred making even transitive dependencies explicit, but it's up to you! One thing about making them explicit is if you remove a dependency from |
Beta Was this translation helpful? Give feedback.
@Przeszaf We've preferred making even transitive dependencies explicit, but it's up to you! One thing about making them explicit is if you remove a dependency from
ModuleA
that is depended on byModuleB
, butModuleB
depended on that dependency transitively, you must also updateModuleB
's dependencies.