Skip to content

Commit

Permalink
use ts loader for gts
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Sep 17, 2024
1 parent 49b1c5f commit 6442e97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vite/src/esbuild-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ export function esBuildResolver(): EsBuildPlugin {
if (['.hbs', '.gjs', '.gts', '.js', '.ts'].some(ext => path.endsWith(ext))) {
src = transformAndAssert(src, path);
}
if (path.endsWith('.gts')) {
return { contents: src, loader: 'ts' };
}
return { contents: src };
}

Expand Down

0 comments on commit 6442e97

Please sign in to comment.