mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The change avoids the compiler CLI internal API from mismatching the following case as lazy loading
```
import { NonLazyLoadedModule } from './non-lazy-loaded/non-lazy-loaded.module';
export function getNonLazyLoadedModule() { return NonLazyLoadedModule; }
export const routes = [
{ path: '/some-path', loadChildren: getNonLazyLoadedModule }
];
```
The output of the check is later passed to `RouteDef.fromString()`, so, it makes sense to be only a string.
Fixes angular/angular-cli#3204
|
||
|---|---|---|
| .. | ||
| @angular | ||
| angular1_router | ||
| benchmarks | ||
| benchmarks_external | ||
| e2e_util | ||
| payload_tests/hello_world/ts | ||
| playground | ||
| rollup-test | ||
| empty.ts | ||
| es6-subset.d.ts | ||
| system.d.ts | ||
| tsconfig.json | ||
| types.d.ts | ||