Skip to content

0.12.7

Choose a tag to compare

@k7d k7d released this 11 Oct 11:26
· 261 commits to main since this release

Added

  • npm create clojurific@latest scaffolds a Hono backend (--template hono): its app is a :js-entries export the dev server runs and hot reloads with @hono/vite-dev-server, npm run build bundles it into a Node.js server, npm run repl evaluates in it. The framework prompt links to each framework's site.
  • The REPL evaluates in servers the Vite dev server's ssr environment runs: under :esm-repl, :js-entries modules import the REPL runtime first, which connects through the module runner's hot channel. The plugin's ssrEntries option runs entries in the ssr environment once compiled, so the REPL has a runtime before the server's first request.

Fixed

  • The REPL stopped answering a runtime whose REPL runtime module was hot reloaded (i.e. by a late file event of the dev server's first compile): Vite drops the listeners of the module's previous instance, the new instance now connects again.