Skip to content

@lit-labs/ssr-react@0.3.0

Compare
Choose a tag to compare
@lit-robot lit-robot released this 25 Apr 19:51
· 4 commits to main since this release
56cb2ca

Minor Changes

  • #4575 aa4fc3ef - The Node build of @lit-labs/ssr-react/enable-lit-ssr.js now also monkey-patches react/jsx-runtime to include logic for deeply server-rendering Lit components without modifying jsxImportSource in tsconfig.

    The monkey-patching logic also adds a workaround for inconsistent es module interop behavior in tools like webpack which could lead to errors like TypeError: Cannot set property createElement of [object Module] which has only a getter.

Patch Changes

  • #4575 aa4fc3ef - Use a global flag to detect whether @lit-labs/ssr-react/enable-lit-ssr.js was used for coordinating props when server rendering components made with @lit/react.