Skip to content

Commit

Permalink
Move @glimmer/manager usage back to importSync
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Dec 16, 2022
1 parent 316e2c3 commit cff45b4
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ import type {
ComponentInstance,
InternalComponentManager,
} from '@glimmer/interfaces';
import { getInternalComponentManager } from '@glimmer/manager';
import { importSync } from '@embroider/macros';

let getInternalComponentManager: (
definition: object
) => InternalComponentManager;

// this would be much better as a regular `import` statement, but there really isn't any way to make typescript happy with thayar
getInternalComponentManager =
//@ts-ignore
importSync('@glimmer/manager').getInternalComponentManager;

const OUTLET_TEMPLATE = hbs`{{outlet}}`;
const EMPTY_TEMPLATE = hbs``;
Expand Down

0 comments on commit cff45b4

Please sign in to comment.