Is there any simple way to set up so that I can import starting from some root point?
e.g.:
- module1
\- file1.ts
- module2
\- file2.ts
in file2 i want to import file1
import { foo } from '../module1/file1'
What I would like to do instead is something like:
import { foo } from 'src/module1/file1'
Angular2 somehow uses this (see https://github.com/angular/angular/blob/master/modules/angular2/src/core/compiler/compiler.ts). I looked into their build process, but it's so complex, I'm not sure how they enabled this.