JSPM

  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q70864F
  • License MIT

A collection of tools to use in SSR rendering

Package Exports

  • ssr-tools/file-router
  • ssr-tools/hydrate/preact
  • ssr-tools/islands
  • ssr-tools/islands/vite

Readme

Note: this is a work in progress

ssr-tools

Some tools to use in SSR-rendered apps, designed primarily around preact islands, vite, and a next-style file router.

Using vite:

import { islands } from 'ssr-tools/islands'

defineConfig({
    plugins: [
        preact(),
        islands()
    ],
    ...
})

Acknowledgements

Adapted from vite-plugin-voie, and barelyhuman's preact-island-plugins.