ssr-tools
TypeScript icon, indicating that this package has built-in type declarations

0.0.27 • Public • Published
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 preact from '@preact/preset-vite'
import { islands, fileRouter, client } from 'ssr-tools'

defineConfig({
    plugins: [
        preact(),
        islands(),
        fileRouter(),
        client(),
    ],
    build: {
        ssr: true 
    }
})

Acknowledgements

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

Readme

Keywords

Package Sidebar

Install

npm i ssr-tools

Weekly Downloads

28

Version

0.0.27

License

MIT

Unpacked Size

224 kB

Total Files

53

Last publish

Collaborators

  • coxmichael