componentjs / builder2.js

builder for component
50 stars 20 forks source link

do not include dependencies multiple times #58

Closed bodokaiser closed 10 years ago

bodokaiser commented 10 years ago

When you have multiple local components which require the same dependencies then builder includes these dependencies for each local.

This means for example that there are three copies of "superagent~0.18.0" in build.js which of course bloats up the code quite hard.

Is this intended?

bodokaiser commented 10 years ago

Sorry I accidentally used the += operator for concating the build in the build middleware which lead to multiple includes. There is not bug in builder