nuxt-ssr-lit icon indicating copy to clipboard operation
nuxt-ssr-lit copied to clipboard

Nuxt2 support

Open prashantpalikhe opened this issue 3 years ago • 3 comments

The module currently only supports Nuxt3 but it definitely can support Nuxt2. Add support for Nuxt2 as well.

prashantpalikhe avatar Oct 13 '22 08:10 prashantpalikhe

A rough task list:

  • [x] Module installation code modified so equivalent APIs for Nuxt 2 are used
  • [ ] Vue 2 version of the wrapper components are available to be used. Probably needs some refactoring of the render logic to extract it out
  • [ ] Vite plugin needs an equivalent webpack plugin
  • [x] Nuxt 2 versions of the shim plugins need to be created
  • [x] Nuxt 2 playground app for testing

steveworkman avatar Oct 19 '22 11:10 steveworkman

We closed the Nuxt 2 PR as there were significant changes coming to Lit in SSRv3 that were needed. Even with this change, I'm not confident that SSR is possible in Nuxt 2.

What can do is use the library to support CSR - use the module to supply necessary shims etc.

steveworkman avatar Feb 08 '23 14:02 steveworkman

would this maybe work with nuxt-bridge?

jswhisperer avatar Feb 02 '24 15:02 jswhisperer