@@ -908,7 +908,9 @@ describe('Transform: rewriteModule', () => {
908908
909909 expect ( transformedModule ?. errors ) . toEqual ( [ ] ) ;
910910 expect ( transformedModule ?. transformedContents ) . toMatchInlineSnapshot ( `
911- "import type { TOC } from '@ember/component/template-only';
911+ "import __GLINT_GTS_EXTENSION_HACK__ from './__glint-non-existent.gts';
912+ import __GLINT_GJS_EXTENSION_HACK__ from './__glint-non-existent.gjs';
913+ import type { TOC } from '@ember/component/template-only';
912914 export default ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateExpression(function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {
913915 __glintRef__; __glintDSL__;
914916 }) satisfies TOC<{
@@ -941,24 +943,26 @@ describe('Transform: rewriteModule', () => {
941943
942944 expect ( transformedModule ?. errors ?. length ) . toBe ( 0 ) ;
943945 expect ( transformedModule ?. transformedContents ) . toMatchInlineSnapshot ( `
944- "import type { TOC } from '@ember/component/template-only';
945-
946- const SmolComp =
947- ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateExpression(function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {
948- __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.name)());
949- __glintRef__; __glintDSL__;
950- }) satisfies TOC<{ Args: { name: string }}>;
951-
952- export default ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateExpression(function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {
953- {
954- const __glintY__ = __glintDSL__.emitComponent(__glintDSL__.resolve(SmolComp)({
955- name: "Ember", ...__glintDSL__.NamedArgsMarker }));
956- __glintY__;
957- }
958- __glintRef__; __glintDSL__;
959- }) satisfies TOC<{ Args: {}, Blocks: {}, Element: null }>
960- "
961- ` ) ;
946+ "import __GLINT_GTS_EXTENSION_HACK__ from './__glint-non-existent.gts';
947+ import __GLINT_GJS_EXTENSION_HACK__ from './__glint-non-existent.gjs';
948+ import type { TOC } from '@ember/component/template-only';
949+
950+ const SmolComp =
951+ ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateExpression(function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {
952+ __glintDSL__.emitContent(__glintDSL__.resolveOrReturn(__glintRef__.args.name)());
953+ __glintRef__; __glintDSL__;
954+ }) satisfies TOC<{ Args: { name: string }}>;
955+
956+ export default ({} as typeof import("@glint/environment-ember-template-imports/-private/dsl")).templateExpression(function(__glintRef__, __glintDSL__: typeof import("@glint/environment-ember-template-imports/-private/dsl")) {
957+ {
958+ const __glintY__ = __glintDSL__.emitComponent(__glintDSL__.resolve(SmolComp)({
959+ name: "Ember", ...__glintDSL__.NamedArgsMarker }));
960+ __glintY__;
961+ }
962+ __glintRef__; __glintDSL__;
963+ }) satisfies TOC<{ Args: {}, Blocks: {}, Element: null }>
964+ "
965+ ` ) ;
962966 } ) ;
963967 } ) ;
964968 } ) ;
0 commit comments