Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(platform-server): import
xhr2
dynamically in the ServerXhr…
… class (#50095) This commit updates the `@angular/common/http` and `@angular/platform-server` packages to allow dynamic import of the `xhr2` dependency. The `xhr2` dependency has side-effects that rely on a global scope and as a result in some environments those side-effectful calls fail. With the changes from this PR, the import is delayed until it's actually needed, which gives a chance for the underlying platform to setup global scope (via shims) as needed. Co-authored-by: alan-agius4 <17563226+alan-agius4@users.noreply.github.com> PR Close #50095
- Loading branch information