Skip to content

fix: add Vite 9 forward compatibility - #312

Merged
birkskyum merged 1 commit into
solidjs:nextfrom
birkskyum:vite-9-support
Aug 19, 2026
Merged

fix: add Vite 9 forward compatibility#312
birkskyum merged 1 commit into
solidjs:nextfrom
birkskyum:vite-9-support

Conversation

@birkskyum

Copy link
Copy Markdown
Member

Summary

  • derive client/server hook mode from this.environment.config.consumer
  • cover the JSX transform, server-function hooks, and start handler loads
  • retain an options.ssr fallback for non-Vite hook contexts
  • accept Vite 9 as a peer and enable Vite 8's removal warning in the fixture
  • add a patch changeset

Ports the environment-hook update from solidjs/solid-start@85b24b2 (solid-start#2191) to the Solid 2 plugin surface. It also brings the next line in sync with vite-plugin-solid#273.

Testing

  • pnpm build
  • pnpm check
  • Vite 8 fixture build with removePluginHookSsrArgument: 'warn'
  • node test/run.mjs prod (51/51 assertions)

@changeset-bot

changeset-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a9d7772

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

This PR includes changesets to release 1 package
Name Type
@solidjs/vite-plugin 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

@pkg-pr-new

pkg-pr-new Bot commented Aug 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@solidjs/vite-plugin@312

commit: a9d7772

@birkskyum
birkskyum merged commit 450d0e5 into solidjs:next Aug 19, 2026
6 checks passed
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