Skip to content

Commit

Permalink
vite also needs to resolve index.{gjs,gts}
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Feb 29, 2024
1 parent c52ad5c commit 4dcea21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/template-tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function templateTag({ inline_source_map } = { inline_source_map: false }
let preprocessor = new Preprocessor();

function candidates(id: string) {
return [id + '.gjs', id + '.gts'];
return [id + '.gjs', id + '.gts', id + '/index.gjs', id + '/index.gts'];
}

return {
Expand Down

0 comments on commit 4dcea21

Please sign in to comment.