Change8

@qwik.dev/router@2.0.0-beta.28

📦 qwikView on GitHub →
2 features🔧 1 symbols

Summary

This release introduces significant developer experience improvements with the addition of Hot Module Replacement (HMR) support and better handling of multiple Vite environments. The minimum required Vite version has been updated to 6.0.0.

Migration Steps

  1. If you rely on Qwik Router adapters, you must continue running `build.server` separately.
  2. To disable HMR and revert to full page reloads during development, set `{devTools: {hmr: false}}` in the `qwikVite()` plugin configuration.

✨ New Features

  • Improved support for the Vite environment API, allowing multiple environments to be built simultaneously using `vite build --app`. Note that Qwik Router adapters still require a separate `build.server` run.
  • Added Hot Module Replacement (HMR) support for instant source code update without state loss during development. State is sent by all components during development when HMR is active.

Affected Symbols