Skip to content

Commit

Permalink
fix initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Jul 13, 2024
1 parent 5e48401 commit ad4e946
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/instance-initializers/vite-hot-reload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { Renderer } from '@ember/-internals/glimmer/lib/renderer';
function patchResolver(application: ApplicationInstance) {
application.__container__.lookup('service:vite-hot-reload');
const resolver =
(application.__registry__.resolver as any)._fallback ||
(application.__registry__.resolver as any)?._fallback ||
(application.__registry__.fallback?.resolver as any)._fallback ||
application.__registry__.resolver;
const resolverResolve = resolver.resolve;
resolver.resolve = function (name: string) {
Expand Down

0 comments on commit ad4e946

Please sign in to comment.