@analogjs/astro-angular 0.2.0-beta.24 → 0.2.0-beta.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -121,6 +121,26 @@ export default defineConfig({
|
|
|
121
121
|
});
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
+
### Transforming Packages for SSR Compatibility
|
|
125
|
+
|
|
126
|
+
To ensure Angular libraries are transformed during Astro's SSR process, add them to the `ssr.noExternal` array in the Vite config.
|
|
127
|
+
|
|
128
|
+
```js
|
|
129
|
+
import { defineConfig } from 'astro/config';
|
|
130
|
+
|
|
131
|
+
import angular from '@analogjs/astro-angular';
|
|
132
|
+
|
|
133
|
+
export default defineConfig({
|
|
134
|
+
integrations: [angular()],
|
|
135
|
+
vite: {
|
|
136
|
+
ssr: {
|
|
137
|
+
// transform these packages during SSR. Globs supported
|
|
138
|
+
noExternal: ['@rx-angular/**'],
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
});
|
|
142
|
+
```
|
|
143
|
+
|
|
124
144
|
## Defining A Component
|
|
125
145
|
|
|
126
146
|
The Astro Angular integration **only** supports rendering standalone components:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@analogjs/astro-angular",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.26",
|
|
4
4
|
"description": "Use Angular components within Astro",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Brandon Roberts <robertsbt@gmail.com>",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"url": "https://github.com/analogjs/analog.git"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@analogjs/vite-plugin-angular": "^0.2.0-beta.
|
|
30
|
+
"@analogjs/vite-plugin-angular": "^0.2.0-beta.26"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@angular-devkit/build-angular": "^16.0.0",
|