Skip to content

Commit

Permalink
fix(vite-plugin-angular): only apply sourcemap transform to TS files …
Browse files Browse the repository at this point in the history
…during testing (#1500)
  • Loading branch information
brandonroberts authored Dec 15, 2024
1 parent 3fc9f29 commit 0b56d46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vite-plugin-angular/src/lib/angular-vitest-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ export function angularVitestSourcemapPlugin(): Plugin {
return {
name: '@analogjs/vitest-angular-sourcemap-plugin',
async transform(code: string, id: string) {
if (!/\.ts/.test(id)) {
return;
}

const [, query] = id.split('?');

if (query && query.includes('inline')) {
Expand Down

0 comments on commit 0b56d46

Please sign in to comment.