build up imports of used and base component before adding existing directives in order to filter out component imports

TODO: in debugging this I noticed that hasExtends is always false (i.e.
info.extendsComponent is always null) even when the component has a base
component -> that should be fixed so that this filter also covers the
base component case