@tsrx/vite-plugin-vue@0.0.67

Ripple-TS/ripple@tsrx/vite-plugin-vue@0.0.67Jul 28, 2026by github-actions[bot]

AI Summary

Improves Vite integration by making `.tsrx` imports visible to the dependency scanner and fixing JSX runtime issues during scanning.

Key Highlights

  • Makes `.tsrx` imports visible to Vite's dependency scanner in all plugins
  • Adds a new dep-scan entry point to `@tsrx/core`
  • Fixes JSX transform defaults for non-React runtimes during scanning

New Features

  • Added dep-scan entry points to `@tsrx/core` for Vite plugins
  • Fixed JSX transform for non-React runtimes in dependency scanner

Full Release Notes

### Patch Changes

- [#1394](https://github.com/Ripple-TS/ripple/pull/1394)
  [`6404d3c`](https://github.com/Ripple-TS/ripple/commit/6404d3cc679fde2eb83ec85c9cd98b653f3f2fed)
  Thanks [@leonidaz](https://github.com/leonidaz)! - fix: make `.tsrx` imports
  visible to Vite's dependency scanner in every plugin

  Vite's dep scanner runs through Rolldown without the main plugin pipeline, so
  any npm dependency imported only from `.tsrx` files was invisible at startup and
  got discovered at request time instead, forcing a re-optimize and a full page
  reload. Only `@tsrx/vite-plugin-react` handled this; `@tsrx/vite-plugin-preact`,
  `@tsrx/vite-plugin-solid` and `@ripple-ts/vite-plugin` now do too.

  `@tsrx/core` gains a `@tsrx/core/vite/dep-scan` entry point with the two plugin
  shapes this needs: `createDepScanTransformPlugin` for plugins that transform
  `.tsrx` ids directly, and `createDepScanLoadPlugin` for plugins that rewrite
  them to a virtual `<path>.tsx` form. Both swallow compile failures, so a single
  malformed file no longer costs the whole project its dependency pre-bundling.

  Also fixes the scan's own JSX transform, which defaults to React's automatic
  runtime. It was emitting an unresolvable `react/jsx-dev-runtime` import into
  Preact, Solid and Vue projects, which failed the scan outright — the React-only
  form of this bug appeared when `jsxImportSource` was set to a non-React runtime.
  The React and Preact plugins now point that transform at the configured import
  source, and the Solid and Vue plugins leave JSX untransformed during the scan
  since their own JSX stage runs downstream.

- Updated dependencies
  [[`6404d3c`](https://github.com/Ripple-TS/ripple/commit/6404d3cc679fde2eb83ec85c9cd98b653f3f2fed),
  [`6025176`](https://github.com/Ripple-TS/ripple/commit/6025176000cafa50d924add8e9a878fe37c0c22b),
  [`7ad580e`](https://github.com/Ripple-TS/ripple/commit/7ad580efd24b338b4774add06afdcdd8876c954c),
  [`6eaa2f3`](https://github.com/Ripple-TS/ripple/commit/6eaa2f3e6cd18973d57df06eae770313dd061a1a),
  [`9ffd4ba`](https://github.com/Ripple-TS/ripple/commit/9ffd4ba3e5982acb79a02efe0379abdc14c092a1)]:
  - @tsrx/core@0.1.51
  - @tsrx/vue@0.1.51