Skip to content

Commit

Permalink
fix(vite-plugin-angular): check for agx.d in fileExists (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuamorony committed Mar 5, 2024
1 parent 82de2d3 commit a1f0ae1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion apps/ng-app/src/content/post.agx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ title: Hello World
const name = 'Analog';
</script>

<template>
<template lang="md">
My First Post on {{ name }}

## Header

```ts
const test = "hi";
```
</template>
3 changes: 2 additions & 1 deletion packages/vite-plugin-angular/src/lib/host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ export function augmentHostWithResources(
(resourceHost as ts.CompilerHost).fileExists = function (fileName: string) {
if (
fileName.includes('virtual-analog:') &&
!fileName.endsWith('analog.d')
!fileName.endsWith('analog.d') &&
!fileName.endsWith('agx.d')
) {
return true;
}
Expand Down

0 comments on commit a1f0ae1

Please sign in to comment.