mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
fix(core): load global utils before creating platform injector in the standalone case (#52365)
This is needed so that the providers configured on platform creation are picked up by the injector profiler. PR Close #52365
This commit is contained in:
parent
d5dedf49fa
commit
8ee0f27c9e
1 changed files with 1 additions and 1 deletions
|
|
@ -190,10 +190,10 @@ function createOrReusePlatformInjector(providers: StaticProvider[] = []): Inject
|
|||
// is already bootstrapped and no additional actions are required.
|
||||
if (_platformInjector) return _platformInjector;
|
||||
|
||||
publishDefaultGlobalUtils();
|
||||
// Otherwise, setup a new platform injector and run platform initializers.
|
||||
const injector = createPlatformInjector(providers);
|
||||
_platformInjector = injector;
|
||||
publishDefaultGlobalUtils();
|
||||
publishSignalConfiguration();
|
||||
runPlatformInitializers(injector);
|
||||
return injector;
|
||||
|
|
|
|||
Loading…
Reference in a new issue