angular - Lägg till prefix till importadresser efter att ha kompilerat TypeScript
Jag har en Angular2-app som jag skriver i TypeScript.
Jag undrar om det är möjligt att få TypeScript-kompilatorn att lägga till ett prefix (och postfix) till alla importerade URL:er?
T.ex. jag fick följande kod:
import {AppComponent} from 'app.component';
Vilket kompileras till något liknande detta i JavaScript:
System.register(['./test/app.component'], ...
Men det jag vill ha är:
System.register(['<some_path>/test/app.component.js'], ...
Där "some_path" kan vara t.ex. "component/my_app/".