Skip to content

build!: require Qwik 2.0.0-rc.4 and move to Vite 8 - #23

Merged
diecodev merged 4 commits into
v2from
chore/qwik-rc4
Oct 30, 2026
Merged

diecodev merged 4 commits into
v2from
chore/qwik-rc4

Conversation

@diecodev

Copy link
Copy Markdown
Owner

Moves the repo to Qwik 2.0.0-rc.4 (@qwik.dev/core, @qwik.dev/router and eslint-plugin-qwik). rc.4 needs Vite 8, which bundles with Rolldown. This is the content of 2.0.0-beta.3.

Merge this right before pnpm release. It touches website/, so merging deploys docs that ask for rc.4 while 2.0.0-beta.2 is still the published version.

Public API and build output

  • Breaking: the peer dependency goes from @qwik.dev/core ^2.0.0-beta.37 to ^2.0.0-rc.4. Consumers need rc.4, and therefore Vite 8.
  • Package layout: lib/ has two files instead of three. Rolldown puts the code both entries share into headless.qwik.mjs, which index.qwik.mjs imports, so nothing is duplicated. The exports of both entries are unchanged.
  • Sizes: index.qwik.mjs goes from 19.95 to 20.12 kB. headless.qwik.mjs is 49.33 kB; before, it was 55.82 kB plus the shared chunk.
  • Tarball: 12 files, with every entry point and no Qwik manifests.

Changes

  • Catalog: Qwik 2.0.0-rc.4 and vite ^8.3.5. vite-tsconfig-paths is removed and replaced by Vite 8's built-in resolve.tsconfigPaths.
  • Vite configs: build.rolldownOptions instead of rollupOptions. JSON imports use with { type: "json" }, and the website config imports its local modules with a .ts extension. Both clear Vite 8's config-loader warnings.
  • pnpm lint lints again. Since 76e7fd0, the script ran oxlint --debug=files .. That flag only lists the files and exits 0, so neither pnpm lint nor the CI linted anything. The whole repo passes oxlint ..
  • New test: back-to-back.spec.ts (see below).
  • Docs:
    • AGENTS.md drops the Vite 7 pin and explains how to check a production build.
    • The site asks for rc.4 and lists no known issues.
    • The 404 comments describe what rc.4's SSG does. It now writes 404.html itself, but that page shows the build-time address until Qwik starts, so emit-404.mjs stays.

Checks

  • Static checks: fmt.check, build.types, build.lib and lint pass at the root. build.types and lint pass in website/ and test/, and the full SSG build of the site passes.
  • e2e against the dev server: 154/154 on chromium and webkit, and 456/456 with --repeat-each 3 before the new test was added.
  • e2e against a production build (build.client + build.preview, served by vite preview): 152/152, with no Qwik errors in the server log. This is the Rolldown problem that kept Vite pinned to 7 (Q14 in production SSR), and it's gone with rc.4.
  • B4 (a toast fired before the Toaster subscribes): 60/60.
  • Dev-server stall: a plain toast followed right away by a typed one stalled the Toaster on beta.37 in 7 of 20 runs, and in 0 of 60 runs on rc.4. back-to-back.spec.ts covers it, and passes 40/40.
  • Site built on rc.4, in chromium and webkit: toasts, several Toasters and topLayer above a modal all work, with no console errors.

Since 76e7fd0 the script ran `oxlint --debug=files .`, which only prints the files it would lint and exits 0, so neither `pnpm lint` nor the CI linted anything. The whole repo passes `oxlint .`.
The catalog moves @qwik.dev/core, @qwik.dev/router and eslint-plugin-qwik to 2.0.0-rc.4, which needs Vite 8 (Rolldown). The production build works under Rolldown now: the Q14 errors of the betas are gone. The configs use Vite 8's built-in tsconfig paths instead of vite-tsconfig-paths, build.rolldownOptions, and JSON imports with an import attribute.

The library output is two files instead of three: Rolldown puts the code both entries share into headless.qwik.mjs, which index.qwik.mjs imports.

BREAKING CHANGE: qwik-sonner now needs @qwik.dev/core 2.0.0-rc.4 or later, and so Vite 8.
On Qwik 2.0.0-beta.37's dev server a plain toast followed right away by a typed one could stall the Toaster for good (7 of 20 loads). Qwik 2.0.0-rc.4 fixed it (60 of 60).
AGENTS.md drops the Vite 7 pin, explains how to check a production build, and lists the Vite 8 config changes. The site asks for @qwik.dev/core 2.0.0-rc.4 or later and has no known issues left, and the 404 comments describe what rc.4's SSG does.
@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
qwik-sonner Ready Ready Preview Oct 30, 2026 3:26am UTC

@diecodev
diecodev merged commit c18bea1 into v2 Oct 30, 2026
5 checks passed
@diecodev
diecodev deleted the chore/qwik-rc4 branch October 30, 2026 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant