Imagine having a growing Angular2 typescript solution with numerous small classes and objects. Following the best practice, each class is placed in its own file.
However, manipulating these objects leads to long lists of imports like:
import {Object1} from '../core-data/object1';
import {Object2} from '../core-data/object2';
import {Object3} from '../core-data/object3';
{Object4} from '../core-data/object4';
import {Object5} from '../core-data/object5';
It would be more convenient if you could simplify this process by importing all core objects at once:
import {Object1, Object2, Object3, Object4, Object5} from '../core-data/CORE_OBJECTS';
The attempt to replicate the pattern used by the Angular team for CORE_DIRECTIVES
did not work as expected, as those are added through the directives
property on the Component
annotation.
You don't want to create a new project or bundle it together as it may complicate things - these are simply core objects that should be easy to adjust.
What would be the most effective way to address this issue?