vite-plugin-astro-prerender 0.2.1 → 0.3.1
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 +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -263,6 +263,7 @@ import type {
|
|
|
263
263
|
|
|
264
264
|
While powerful, this plugin has some limitations to keep in mind:
|
|
265
265
|
|
|
266
|
+
- **JavaScript Expressions (Parser Renderer)**: The `parser` renderer does not evaluate JavaScript expressions like `{items.map(...)}` or `{variable}` (except simple frontmatter string variables). If you use dynamic expressions, they will render as `[object Object]`. Use static HTML in your lazy components, or ensure the `container` renderer is working properly.
|
|
266
267
|
- **Client Interaction**: Components are prerendered as static HTML. While you can include scripts, complex Astro client-side state (like `base` or shared Nanostores) might require careful manual setup in the target page.
|
|
267
268
|
- **Component Imports**: The default `parser` renderer cannot resolve component imports (e.g., `<Button />`). Use the `container` renderer for components with nested dependencies.
|
|
268
269
|
- **Vite Dependency**: The `container` renderer requires a running Vite dev server to perform SSR module loading.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-astro-prerender",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "A Vite plugin for Astro that prerenders components to static HTML and generates optimized CSS with Tailwind tree-shaking for lazy-loading below-the-fold content",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ishan Parlikar"
|