-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
[angular/core] make DebugServices treeshakable (~10KB savings) #39902
Comments
From @filipesilva on October 28, 2017 10:47 /cc @IgorMinar |
From @IgorMinar on October 28, 2017 17:51 This is very interesting but the implementation relies on a side effect of On Sat, Oct 28, 2017, 12:47 PM Filipe Silva notifications@github.com
|
From @IgorMinar on October 31, 2017 13:37 I've been thinking about this and it should be safe to build this optimization into build optimizer. @filipesilva what do you think? |
From @trotyl on November 2, 2017 2:28 It would also save about 2.4KB in Closure Compiler when hard-coded Then comes an awkward situation, before we don't need to combine Closure Compiler with Build Optimizer since Closure Compiler could handle all cases Build Optimizer did. But that is not true any more. |
From @filipesilva on November 4, 2017 10:2 The options to fix this on Build Optimizer are suboptimal I feel... because it compounds the CLI "environments" feature with the Angular In a default CLI app setup, doing But what if the user uses other environment files? Or what if the user changes logic in I think that #12200 would enable a fix for this issue as well, as it makes devMode a compile time concept instead of a runtime one. |
From @IgorMinar on November 4, 2017 15:28 Yeah, you are right about this. I tagged that issue as v6 candidate. On Sat, Nov 4, 2017 at 11:02 AM Filipe Silva notifications@github.com
|
I had a look at this and changing Is there any reason why we use Transferring to the FW repo, since this is more of an |
@IgorMinar this is supposed to be resolved by the combination of Ivy and |
Closing as obsolete, since these services are ViewEngine specific. |
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. |
From @aitboudad on October 28, 2017 10:20
Bug Report or Feature Request (mark with an
x
)Area
Desired functionality
Uglify is not able to remove unused debug services bocause of condition: core.js#L13946 and replacing that condition with
createProdServices()
resulted in ~10KB savingsCopied from original issue: angular/devkit#244
The text was updated successfully, but these errors were encountered: