wrec 0.22.3 → 0.22.5
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 +11 -0
- package/dist/wrec-ssr.es.js +4145 -53
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -130,6 +130,17 @@ Here are the steps:
|
|
|
130
130
|
|
|
131
131
|
1. Click the "-" and "+" buttons to verify that the component is working.
|
|
132
132
|
|
|
133
|
+
## SSR Support
|
|
134
|
+
|
|
135
|
+
Server-side rendering (SSR) is supported.
|
|
136
|
+
This requires importing from "wrec/ssr" instead of "wrec".
|
|
137
|
+
That bundle is much larger because it bundles the node-html-parser package.
|
|
138
|
+
However, the size increase is not likely an issue
|
|
139
|
+
because it is used on the server-side rather than downloaded to web browsers.
|
|
140
|
+
|
|
141
|
+
For an example of using wrec with SSR, see
|
|
142
|
+
https://github.com/mvolkmann/web-component-book-code/tree/main/ch15/wrec-ssr-demo.
|
|
143
|
+
|
|
133
144
|
## Examples
|
|
134
145
|
|
|
135
146
|
To run the examples in the `src/examples` directory:
|