Skip to content

Commit 3001185

Browse files
thebongylorefnon
authored andcommitted
Access outer scope correctly for import extensions
1 parent 9939720 commit 3001185

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/template.ts.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import {
3535
{{#if isDefault}}
3636
{{#each imported}}
3737
{{#dedent-by 4 "level"}}
38-
import {{.}} from "{{../importPath}}{{output.import.extension}}";
38+
import {{.}} from "{{../importPath}}{{../../output.import.extension}}";
3939
{{/dedent-by}}
4040
{{/each}}
4141
{{else}}
@@ -46,7 +46,7 @@ import {
4646
{{.}},
4747
{{/each}}
4848
{{/dedent-by}}
49-
} from "{{importPath}}{{output.import.extension}}";
49+
} from "{{importPath}}{{../output.import.extension}}";
5050
{{/dedent-by}}
5151
{{/if}}
5252
{{/each}}

0 commit comments

Comments
 (0)