Skip to content

Commit 019a0f4

Browse files
AleksanderBodurridylhunn
authored andcommitted
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
1 parent 7853332 commit 019a0f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/application_ref.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ function createOrReusePlatformInjector(providers: StaticProvider[] = []): Inject
188188
// is already bootstrapped and no additional actions are required.
189189
if (_platformInjector) return _platformInjector;
190190

191+
publishDefaultGlobalUtils();
191192
// Otherwise, setup a new platform injector and run platform initializers.
192193
const injector = createPlatformInjector(providers);
193194
_platformInjector = injector;
194-
publishDefaultGlobalUtils();
195195
publishSignalConfiguration();
196196
runPlatformInitializers(injector);
197197
return injector;

0 commit comments

Comments
 (0)