Skip to content

Releases: frandiox/vite-ssr

0.13.1

02 Sep 16:36
Compare
Choose a tag to compare
  • feat: Show Vite error overlay in development on SSR errors.

0.13.0

21 Aug 15:52
Compare
Choose a tag to compare
  • feat: Switch to TS interfaces instead of types to allow overriding from user land.
  • feat: Support custom input paths for index.html #88
  • feat: Accept build.serverOptions and build.clientOptions in the plugin.
  • fix: Allow attributes in app wrapper #82

0.12.1

17 Aug 19:24
Compare
Choose a tag to compare
  • feat: Add keepIndexHtml build option.

0.12.0

30 Jul 15:35
Compare
Choose a tag to compare
  • feat: Export createSsrServer from vite-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 a styleCollector option. Vite SSR exports style collectors for the 2 existing integrations, styled-components and material-ui-core-v4, plus the newly added emotion. 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

28 Jul 17:44
Compare
Choose a tag to compare
  • Fix: Possible undefined variable when using getRenderContext.

0.11.2

26 Jul 19:00
Compare
Choose a tag to compare
  • Fix: Export Context type.
  • Fix: Await for build in watch mode when using JS API.

0.11.1

18 Jul 13:00
Compare
Choose a tag to compare
  • Fix: Support Vite's build watch.
  • Fix: Do not copy files from public to dist/server.

0.11.0

17 Jul 14:40
Compare
Choose a tag to compare
  • Feat: useContext utility to access the SSR context (initialState, etc) from anywhere.
  • Feat: redirect and writeResponse utilities to change response headers and status. #55
  • Fix: Vite config properties such as outDir were ignored. #53 #62
  • Fix: Types for request and response object. #54
  • Fix: Compatibility with vite-plugin-legacy. #63 #58

0.10.6

30 Jun 18:10
Compare
Choose a tag to compare
  • Fix: Crash with custom aliases that contain 'vite-ssr' in the replacement. #47
  • Feat: Allow importing from vite-ssr/vue and vite-ssr/react to improve typings.

0.10.5

25 Jun 19:35
Compare
Choose a tag to compare
  • Mark vite-ssr as noExternal in Vite to make it work when installed as devDependencies. Context.

Vue

  • Add options.routerOptions. #42