nuxt-ssr-lit
nuxt-ssr-lit copied to clipboard
Nuxt2 support
The module currently only supports Nuxt3 but it definitely can support Nuxt2. Add support for Nuxt2 as well.
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
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.
would this maybe work with nuxt-bridge?