Skip to content

Add experimental TSRX support - #333

Draft
ryansolid wants to merge 1 commit into
nextfrom
tsrx-support
Draft

Add experimental TSRX support#333
ryansolid wants to merge 1 commit into
nextfrom
tsrx-support

Conversation

@ryansolid

Copy link
Copy Markdown
Member

Summary

  • route .tsrx modules through the native or Babel Solid compiler and strip retained TypeScript before Vite parses generated modules
  • expose compiler CSS sidecars as virtual CSS modules integrated with production extraction, client HMR, and SSR development style collection
  • include .tsrx in dependency scanning, lazy chunk handling, start entry discovery, and function-level \"use server\" processing

Depends on solidjs/solid#3086 and should remain draft until the compiler support ships in a Solid prerelease.

Test plan

  • pnpm build
  • Vite 8 production build with native compiler
  • Vite 8 production build with Babel compiler
  • Vite 8 browser test with native compiler
  • Vite 8 browser test with Babel compiler
  • native and Babel SSR entry builds
  • development transform, CSS sidecar, HMR update, source-map, and server-function smoke checks

Made with Cursor

Route .tsrx through both compilers, expose scoped CSS across dev, builds, and SSR, and compose function-level server directives after lowering.

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot

changeset-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fb3325c

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 28, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: fb3325c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant