From 3001185210d40cf44164221db320a3f58caa6c3f Mon Sep 17 00:00:00 2001 From: Rishit Bansal Date: Tue, 12 Mar 2024 09:38:38 +0530 Subject: [PATCH] Access outer scope correctly for import extensions --- src/template.ts.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/template.ts.hbs b/src/template.ts.hbs index 6a48480..050bcb4 100644 --- a/src/template.ts.hbs +++ b/src/template.ts.hbs @@ -35,7 +35,7 @@ import { {{#if isDefault}} {{#each imported}} {{#dedent-by 4 "level"}} - import {{.}} from "{{../importPath}}{{output.import.extension}}"; + import {{.}} from "{{../importPath}}{{../../output.import.extension}}"; {{/dedent-by}} {{/each}} {{else}} @@ -46,7 +46,7 @@ import { {{.}}, {{/each}} {{/dedent-by}} - } from "{{importPath}}{{output.import.extension}}"; + } from "{{importPath}}{{../output.import.extension}}"; {{/dedent-by}} {{/if}} {{/each}}