Skip to content

Version 3.0.0-rc2

Pre-release
Pre-release

Choose a tag to compare

@derrickreimer derrickreimer released this 27 May 21:38
· 12 commits to 3.x since this release

Added

  • Add a pluggable SSR adapter system. Server-side rendering is now performed through an Inertia.SSR.Adapter behaviour, so you can plug in an alternative JavaScript runtime (Bun, a Vite dev server, etc.) in place of the default Node.js process pool by passing a module via the :ssr_adapter option to Inertia.SSR. The default Inertia.SSR.NodeJSAdapter preserves the existing behavior (#44).
  • Add an :esm option to Inertia.SSR for using an ECMAScript Module SSR entrypoint. ESM is also auto-detected from a .mjs module extension (#44).
  • The inertia.install task now produces a complete, buildable setup for Svelte and Vue, not just React. Because Svelte and Vue single-file components must be compiled by an esbuild plugin — which the esbuild Hex package's CLI can't load — the installer drives esbuild from Node (assets/esbuild.config.js) via esbuild-svelte / unplugin-vue, generates the framework's Inertia entry point, and installs the client packages.
  • inertia.install now scaffolds a starter page (Home.jsx / Home.vue / Home.svelte) in place of an empty .gitkeep, so mix assets.build succeeds immediately after install.
  • Add step-by-step front-end setup guides for React, Svelte, and Vue, each covering both client-side and server-side rendering with esbuild and backed by runnable example apps under examples/.

Changed

  • The inertia.install task's React setup now adds npm install to the assets.setup alias, so client dependencies are restored on a fresh checkout or CI build.
  • The README no longer centers its client-side and SSR instructions on React. Framework-specific setup (including SSR) now lives in the per-framework guides, while the README covers the shared, framework-agnostic pieces.

Fixed

  • The root layout generated by inertia.install now loads the JS bundle from /assets/js/app.js, matching esbuild's output directory (previously /assets/app.js, which did not exist).