Skip to content

Commit cff45b4

Browse files
committedDec 16, 2022
Move @glimmer/manager usage back to importSync
1 parent 316e2c3 commit cff45b4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed
 

‎addon-test-support/@ember/test-helpers/setup-rendering-context.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@ import type {
2121
ComponentInstance,
2222
InternalComponentManager,
2323
} from '@glimmer/interfaces';
24-
import { getInternalComponentManager } from '@glimmer/manager';
24+
import { importSync } from '@embroider/macros';
25+
26+
let getInternalComponentManager: (
27+
definition: object
28+
) => InternalComponentManager;
29+
30+
// this would be much better as a regular `import` statement, but there really isn't any way to make typescript happy with thayar
31+
getInternalComponentManager =
32+
//@ts-ignore
33+
importSync('@glimmer/manager').getInternalComponentManager;
2534

2635
const OUTLET_TEMPLATE = hbs`{{outlet}}`;
2736
const EMPTY_TEMPLATE = hbs``;

0 commit comments

Comments
 (0)