Releases: frandiox/vite-ssr
Releases · frandiox/vite-ssr
0.13.1
0.13.0
0.12.1
0.12.0
- feat: Export
createSsrServer
fromvite-ssr/dev
to support running dev server as middleware. - BREAKING (React): The experimental support for
styled-components
and@material-ui/core
has been refactored into a more extendable solution called Style Collector plugins. Instead of detecting CSS-in-JS automatically like before, now you must provide astyleCollector
option. Vite SSR exports style collectors for the 2 existing integrations,styled-components
andmaterial-ui-core-v4
, plus the newly addedemotion
. See style collector examples to implement your own. Example using one of the 3 provided collectors:
import viteSSR from 'vite-ssr/react'
import styleCollector from 'vite-ssr/react/style-collectors/styled-components'
export default viteSSR(App, { routes, styleCollector })
0.11.3
0.11.2
0.11.1
0.11.0
- Feat:
useContext
utility to access the SSR context (initialState
, etc) from anywhere. - Feat:
redirect
andwriteResponse
utilities to change response headers and status. #55 - Fix: Vite config properties such as
outDir
were ignored. #53 #62 - Fix: Types for
request
andresponse
object. #54 - Fix: Compatibility with
vite-plugin-legacy
. #63 #58