refactor(platform-browser): replace isPlatformServer with ngServerMode#59496
refactor(platform-browser): replace isPlatformServer with ngServerMode#59496arturovt wants to merge 1 commit intoangular:mainfrom
isPlatformServer with ngServerMode#59496Conversation
60a49ba to
1c59661
Compare
|
@arturovt Can you resolve the conflicts here and take a look at the failing tests? I suspect they are related to this change. |
1c59661 to
be02523
Compare
|
Shouldn't we drop |
|
|
thePunderWoman
left a comment
There was a problem hiding this comment.
LGTM
I think we can move forward with this. @arturovt Can you do the cleanup on this?
be02523 to
d03c92e
Compare
d03c92e to
7916a23
Compare
|
@arturovt Unfortunately it looks like there's some legit test failures. |
7916a23 to
1ae2bf5
Compare
1ae2bf5 to
f394c49
Compare
This continues to have legitimate test failures. We'll need to re-review when this is genuinely green.
…Mode` In this commit, we switch from using the `isPlatformServer` runtime call to the `ngServerMode`. Note: constructors haven't been touched in order to prevent any breaking changes for the public API.
f394c49 to
89a1450
Compare
|
|
||
| if (this.platformIsServer && type.encapsulation === ViewEncapsulation.ShadowDom) { | ||
| if ( | ||
| typeof ngServerMode !== 'undefined' && |
There was a problem hiding this comment.
Why not just use this.platformIsServer assigned in the constructor here?
There was a problem hiding this comment.
I don't think the optimizer would be able to infer the value of this.platformIsServer as false and remove the condition.
|
This PR was merged into the repository by commit 9a9511a. The changes were merged into the following branches: main, 20.0.x |
|
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. |
In this commit, we switch from using the
isPlatformServerruntime call to thengServerMode.Note: constructors haven't been touched in order to prevent any breaking changes for the public API.