-
Notifications
You must be signed in to change notification settings - Fork 12k
Lazy load and AOT : Working but splitted chunk ONLY WITH AOT FLAG #3267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It works fine on my end (here: https://github.com/MrCroft/lazy) |
Also noticed this. I have a 3.2mb main bundle only now |
That's definitely odd. You should always have the lazy loaded chunks. Does this still happen with the latest versions? If so, can you get me a repro I can debug? |
Not happening for me anymore with the latest stuff (b24) |
I've got many errors since beta 24 which make me stay on beta 22. |
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. |
OS?
Ubuntu 16.10 (x64)
Versions.
angular-cli: 1.0.0-beta.21
Repro steps.
After I read more about lazy load + AOT on this issue, I decided to give a try and it's working really nice for the first time in my app.
So I decided to have some fun and benchmark different results. Here's the ouput :
BUT
As you can see,
ng serve
andng serve --prod
doesn't have the chunk expected and I'm able to find the code (that's supposed to be in the chunk) inside the main bundle. Withaot
flag, I always have both the main bundle and my chunk.Even tho it's working, devs who want to put their app in prod without building with
--aot
will not enjoy the lazy loading they've setup ;)The text was updated successfully, but these errors were encountered: