You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For better compatibility when integrating with other plugins such as [Starlight](https://starlight.astro.build), put the Angular components in a specific folder and use the `transformFilter` callback function to only transform those files.
138
+
139
+
```js
140
+
import { defineConfig } from'astro/config';
141
+
importangularfrom'@analogjs/astro-angular';
142
+
143
+
exportdefaultdefineConfig({
144
+
integrations: [
145
+
angular({
146
+
vite: {
147
+
transformFilter: (_code, id) => {
148
+
returnid.includes('src/components'); // <- only transform Angular TypeScript files
149
+
},
150
+
},
151
+
}),
152
+
],
153
+
});
154
+
```
155
+
135
156
### Transforming Packages for SSR Compatibility
136
157
137
158
To ensure Angular libraries are transformed during Astro's SSR process, add them to the `ssr.noExternal` array in the Vite config.
0 commit comments