Thanks Sander for all the information. 

> As long as you realise the JIT is not a solution, there is nothing wrong with 
> using it temporarily. Here is a git issue 
> <https://github.com/angular/angular/issues/15510> that goes into details. 
> Please note that this is not officially supported!


Short term we will continue to use JIT and switch to AOT during development 
when things gets resolved.

> - AOT does not work with file changes during development properly and the 
> build time is very long for each file change.
> While I'm aware of this, I also know that this is under active development. 
> Soon(ish) the build time will be much better.

Short term this will be served with JIT. Same as above.

> - we have 70+ locales integrated with Angular 4 app and AOT pre-builts the 
> app for each locales and it takes in excess of 20 minutes which is very slow 
> for both development and release process.
> 70+ locales, that sounds like a big challenge. Do you really need all of 
> those in development? With a project this size, I'm pretty sure you have (or 
> should have) a staging environment. Staging should test all languages, so you 
> don't have to do this during development all the time. 20 minutes sounds 
> horrible!
>  


We have staging and we ONLY build one LTR and one RTL language but since AOT is 
slow and doesn’t have a Live-reload we are switching to JIT mode for short term.

All of the above items are co-related and we will wait until the core team 
gives us AOT with faster build times along with dynamic locale functionality.

Until then JIT is the way to go for us. Thanks for all the help to resolve all 
the issues we are facing.

Thanks,
Akhil

> On 30 May 2017, at 3:16 pm, Sander Elias <[email protected]> wrote:
> 
> Hi Akhil,
> 
> Thanks for the quick response. I think it is very valuable for short term as 
> these are the issues we are currently facing with AOT solution...
> As long as you realise the JIT is not a solution, there is nothing wrong with 
> using it temporarily. Here is a git issue 
> <https://github.com/angular/angular/issues/15510> that goes into details. 
> Please note that this is not officially supported!
>  
> - AOT does not work with file changes during development properly and the 
> build time is very long for each file change.
> While I'm aware of this, I also know that this is under active development. 
> Soon(ish) the build time will be much better.
>  
> - we have 70+ locales integrated with Angular 4 app and AOT pre-builts the 
> app for each locales and it takes in excess of 20 minutes which is very slow 
> for both development and release process.
> 70+ locales, that sounds like a big challenge. Do you really need all of 
> those in development? With a project this size, I'm pretty sure you have (or 
> should have) a staging environment. Staging should test all languages, so you 
> don't have to do this during development all the time. 20 minutes sounds 
> horrible!
>  
> My plans for short term - 
> 
> Use JIT for development purposes.
> AOT for production builds
> Yep, no problem. 
>  
> refactor codebase to allow dynamic loading of locales..
>  Euhm. I know the core team is also working on this. I don't have any 
> time-frames or details, but perhaps this doesn't need to be on your plate 
> only. Let me check some things.
> 
> Regards,
> Sander
> 
> 
> Let me know if this is not the right path?
> 
> Thanks,
> Akhil
> 
> 
> On Monday, 29 May 2017 22:26:13 UTC+10, Sander Elias wrote:
> Hi Akhil,
> 
> While  I know for sure this can be made to work, don't do it.
> The JIT is going to disappear in the future. So basing your solution on the 
> JIT is a short term solution.
> You don't need the JIT to be able to lazy-load modules. And soon we will have 
> a way to create the stuff that needs even more dynamic things.
> 
> Regards
> Sander 
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Angular and AngularJS discussion" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/angular/DVfFvDUPSUk/unsubscribe 
> <https://groups.google.com/d/topic/angular/DVfFvDUPSUk/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/angular 
> <https://groups.google.com/group/angular>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to