Skip to content

Commit

Permalink
Access outer scope correctly for import extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
thebongy authored and lorefnon committed Mar 12, 2024
1 parent 9939720 commit 3001185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/template.ts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -46,7 +46,7 @@ import {
{{.}},
{{/each}}
{{/dedent-by}}
} from "{{importPath}}{{output.import.extension}}";
} from "{{importPath}}{{../output.import.extension}}";
{{/dedent-by}}
{{/if}}
{{/each}}
Expand Down

0 comments on commit 3001185

Please sign in to comment.