Revert "refactor(compiler): add createAotCompiler factory"

This reverts commit 170525a225.
This commit is contained in:
Tobias Bosch
2016-11-23 12:09:07 -08:00
parent 453c758d1a
commit e122f6bf0f
13 changed files with 100 additions and 174 deletions

View File

@ -511,12 +511,6 @@ class MockAotCompilerHost implements AotCompilerHost {
constructor() {}
loadResource(filePath: string): Promise<string> { throw new Error('Should not be called!'); }
resolveFileToImport(importedFilePath: string, containingFilePath: string): string {
throw new Error('Should not be called!');
}
// In tests, assume that symbols are not re-exported
resolveImportToFile(modulePath: string, containingFile?: string): string {
function splitPath(path: string): string[] { return path.split(/\/|\\/g); }