According to angular 2 style guide, it is a good practice to define a file for each directory that will contain all the imports of the nested files.
I completely agree with that and have already started using this approach.
Now, my questions is:
Is there any impact on the final bundle size depending on each approach I use?
For instance this(Considering that /core has dozens of exportable classes:
import {DataClient} from './../core'
vs this:
import {DataClient} from './../core/interfaces/data.service'
Additionally, what happens for third party libs, like rxjs? Whats the difference between the following snippets?
import {Observable} from 'rxjs'
import {Observable} from 'rxjs/Observable'
I mentioned rxjs because even in angular documentation is advised to import each operator separately.