DEV Community

Discussion on: Why deps.ts and mod.ts is BAD in Deno

Collapse
 
tobiassn profile image
Tobias SN

No, I’m saying if you have B, C, D, E, F, G and H in there you’re gonna use them anyway.

Thread Thread
 
wongjiahau profile image
WJH

I don't disagree with that, but you have to know that this problem applies to every level of dependencies, so even if you're gonna use everything module, you cannot make sure that the author of the library that you're importing are going to utilize every functions that imported from the mod.ts of another library.
Eventually this creates a snowball effect, little by little, all those unused imports will take up a significant portion if not most of the compile time.

Thread Thread
 
tobiassn profile image
Tobias SN

I’m talking about modules, not functions. You are right that you can’t be sure that a dependency will use every function of all its dependency, but in most cases it won’t matter, as all the functions will be compiled no matter how many you use.