Skip to content

Support WyW 2 static evaluation contract#1473

Draft
Anber wants to merge 2 commits intocallstack:masterfrom
Anber:anber/static-eval-architecture
Draft

Support WyW 2 static evaluation contract#1473
Anber wants to merge 2 commits intocallstack:masterfrom
Anber:anber/static-eval-architecture

Conversation

@Anber
Copy link
Copy Markdown
Collaborator

@Anber Anber commented May 8, 2026

Summary

  • Migrates Linaria's direct WyW dependencies and examples to @wyw-in-js/*@2.0.0-alpha.1.
  • Updates core/react/atomic processors to use the WyW 2 processor static evaluation contract.
  • Adjusts the testkit fixture setup for the new evaluator options and entrypoint cache shape.

Notes

This PR is paired with the WyW 2 alpha static evaluation architecture work. The Linaria runtime metadata shape is preserved, but static semantics now come from processor implementations instead of transform-core heuristics.

Validation

  • pnpm sp:check
  • pnpm --filter @linaria/core --filter @linaria/react --filter @linaria/atomic --filter @linaria/stylelint --filter @linaria/testkit typecheck
  • pnpm --filter @linaria/testkit test
  • pnpm --filter @linaria/core --filter @linaria/react --filter @linaria/atomic --filter @linaria/stylelint build
  • Husky pre-commit ran pnpm check:all successfully.

@linaria/testkit still prints WyW runtime require fallback warnings during eval and Jest reports a forced worker exit after passing tests; those warnings are pre-existing test behavior under the new evaluator diagnostics.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 8, 2026

🦋 Changeset detected

Latest commit: 1278af2

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

This PR includes changesets to release 12 packages
Name Type
@linaria/atomic Patch
@linaria/core Patch
@linaria/react Patch
@linaria/stylelint Patch
@linaria/testkit Patch
linaria-website Patch
linaria Patch
vpssr-linaria-solid-example Patch
esbuild-example Patch
rollup-example Patch
vite-example Patch
webpack5-example Patch

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

@Anber Anber marked this pull request as draft May 8, 2026 17:50
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