fix(router): eager loading with loadChildren in aot#13909
fix(router): eager loading with loadChildren in aot#13909mhevery merged 1 commit intoangular:masterfrom
Conversation
|
I'm wondering if replacing these references can't be done by the |
|
@SamVerschueren it's similar to the bootstrap. does compiler rewrites |
|
@SamVerschueren I don't see why it can't be done automatically. Pls file a new feature request for compiler cli. |
|
@DzmitryShylovich Thanks, I did #14005. Feel free to chime in :). |
The reason is that we never change user code. We only generate new code. If we change the user code it would break dependency tracking tools such as build systems, since many of them do not allow to have two copies of a source file or rewriting the source file. So if we did that we would limit the kinds of build tools which could be used. |
|
@mhevery Alright, I think I understand what you're saying. So if we have a |
|
I want to lazy load an external angular module dynamically .... no ngfactory files are generated when building a my lib , and if they exist : is it write to have such files in an angular lib ? |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Closes #11075
Description:
Runtime compiler is not available after aot compilation, so we need to return
NgModuleFactoryinstead of justNgModule, because we cannot compile it at runtime.instead of