Skip to content

Pre-optimize @preact/signals in dev to fix E2E flakiness#16180

Merged
matthewp merged 1 commit intomainfrom
fix/preact-optimize-signals
Apr 1, 2026
Merged

Pre-optimize @preact/signals in dev to fix E2E flakiness#16180
matthewp merged 1 commit intomainfrom
fix/preact-optimize-signals

Conversation

@matthewp
Copy link
Copy Markdown
Contributor

@matthewp matthewp commented Apr 1, 2026

Changes

  • Adds preact/hooks and @preact/signals to the Preact integration's client optimizeDeps.include so Vite pre-bundles them upfront instead of discovering them late after the first page load
  • Without this, Vite discovers @preact/signals on first request, re-optimizes, and sends a full page reload that races with test interactions

Testing

  • Ran e2e/namespaced-component.test.js 10 times with cache cleared before each run: 10/10 passed. Previously failed ~3/5 on main.

Docs

  • No docs needed — internal dep optimization change with no user-facing API

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 1, 2026

🦋 Changeset detected

Latest commit: ee10ee3

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added pkg: preact Related to Preact (scope) pkg: integration Related to any renderer integration (scope) labels Apr 1, 2026
@matthewp matthewp marked this pull request as ready for review April 1, 2026 14:13
@matthewp matthewp merged commit 1d1448c into main Apr 1, 2026
21 checks passed
@matthewp matthewp deleted the fix/preact-optimize-signals branch April 1, 2026 14:30
@astrobot-houston astrobot-houston mentioned this pull request Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: integration Related to any renderer integration (scope) pkg: preact Related to Preact (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants