wrec 0.25.4 → 0.27.0

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 CHANGED
@@ -152,8 +152,13 @@ to one of those strings.
152
152
  ## SSR Support
153
153
 
154
154
  Server-side rendering (SSR) is supported.
155
- This requires importing from "wrec/ssr" instead of "wrec".
156
- "wrec/ssr" should only be imported by server code.
155
+ Components can always import from "wrec".
156
+ When that import is resolved in a browser build,
157
+ it gets the normal client bundle.
158
+ When it is resolved in Node for SSR, it gets the SSR-enabled bundle.
159
+ This allows the same component source file to work in both environments.
160
+
161
+ "wrec/ssr" can still be imported explicitly by server code if desired.
157
162
  That bundle is much larger because it bundles the node-html-parser package.
158
163
  However, the size increase is not likely an issue
159
164
  because it is used on the server-side rather than downloaded to web browsers.