fix: unify virtual module handling for Start Vite plugins #7178
main fromrefs/pull/7178/head·merged by schiller-manuel(GitHub profile, opens in a new tab) fixes #6588
Summary by CodeRabbit#
Bug Fixes
- Improved virtual-module resolution in pnpm workspaces so the client entry is served reliably.
New Features
- Generates and registers a virtual client entry to ensure correct client bundle wiring.
- Adds a lightweight release metadata entry for patch publishing.
Refactor
- Centralized and simplified virtual-module handling and consolidated related exports for a cleaner plugin surface.
Tests
- Added tests validating virtual module resolution, id encoding, and client-entry generation.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: react-start
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: solid-start
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: start-plugin-core
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: vue-start
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: react-start-rsc
View your CI Pipeline Execution ↗ for commit b8c884e1371cef18e12686af125bd741cf90bc84
Command Status Duration Result nx affected --targets=test:eslint,test:unit,tes...✅ Succeeded 9m 3s View ↗ nx run-many --target=build --exclude=examples/*...✅ Succeeded 30s View ↗
☁️ Nx Cloud last updated this comment at
2026-04-13 20:35:24UTC🚀 Changeset Version Preview#
2 package(s) bumped directly, 3 bumped as dependents.
🟩 Patch bumps#
Package Version Reason @tanstack/react-start-rsc0.0.15 → 0.0.16 Changeset @tanstack/start-plugin-core1.167.32 → 1.167.33 Changeset @tanstack/react-start1.167.35 → 1.167.36 Dependent @tanstack/solid-start1.167.33 → 1.167.34 Dependent @tanstack/vue-start1.167.33 → 1.167.34 Dependent Bundle Size Benchmarks#
- Commit:
c373feb22b06 - Measured at:
2026-04-13T20:27:11.366Z - Baseline source:
history:328d7e5ebc6b - Dashboard: bundle-size history
Scenario Current (gzip) Delta vs baseline Raw Brotli Trend react-router.minimal87.33 KiB 0 B (0.00%) 274.58 KiB 75.97 KiB ███▇▇▇▇▇▁▁▁ react-router.full90.59 KiB 0 B (0.00%) 285.66 KiB 78.72 KiB ████████▁▁▁ solid-router.minimal35.50 KiB 0 B (0.00%) 106.58 KiB 31.88 KiB ███▇▇▇▇▇▁▁▁ solid-router.full39.98 KiB 0 B (0.00%) 120.08 KiB 35.93 KiB ████████▁▁▁ vue-router.minimal53.30 KiB 0 B (0.00%) 151.99 KiB 47.86 KiB ████████▁▁▁ vue-router.full58.19 KiB 0 B (0.00%) 167.41 KiB 52.09 KiB ████████▁▁▁ react-start.minimal101.73 KiB 0 B (0.00%) 322.31 KiB 87.94 KiB ████████▁▁▁ react-start.full105.17 KiB 0 B (0.00%) 332.64 KiB 90.84 KiB ███▇▇▇▇▇▁▁▁ solid-start.minimal49.50 KiB 0 B (0.00%) 152.39 KiB 43.63 KiB ████████▁▁▁ solid-start.full55.03 KiB 0 B (0.00%) 168.60 KiB 48.41 KiB ████████▁▁▁ Trend sparkline is historical gzip bytes ending with this PR measurement; lower is better.
- Commit:
More templates
- tanstack-router-vue-example-basic-jsx
- tanstack-router-vue-example-basic-file-based-jsx
- tanstack-router-vue-example-basic-file-based-sfc
- tanstack-router-react-example-authenticated-routes
- tanstack-router-react-example-authenticated-routes-firebase
- tanstack-router-react-example-basic
- tanstack-router-react-example-basic-default-search-params
- tanstack-router-react-example-basic-devtools-panel
- tanstack-router-react-example-basic-file-based
- tanstack-router-react-example-basic-non-nested-devtools
- tanstack-router-react-example-react-query
- tanstack-router-react-example-basic-react-query-file-based
- tanstack-router-react-example-basic-ssr-file-based
- tanstack-router-react-example-basic-ssr-streaming-file-based
- tanstack-router-react-example-basic-virtual-file-based
- tanstack-router-react-example-basic-virtual-inside-file-based
- tanstack-router-react-example-deferred-data
- tanstack-router-i18n-paraglide
- tanstack-router-react-example-kitchen-sink
- tanstack-router-react-example-kitchen-sink-file-based
- tanstack-router-react-example-kitchen-sink-react-query
- tanstack-router-react-example-kitchen-sink-react-query-file-based
- tanstack-router-react-example-large-file-based
- tanstack-router-react-example-location-masking
- tanstack-router-react-example-navigation-blocking
- tanstack-router-react-example-quickstart
- tanstack-router-react-example-quickstart-esbuild-file-based
- tanstack-router-react-example-quickstart-file-based
- tanstack-router-react-example-quickstart-rspack-file-based
- tanstack-router-react-example-quickstart-webpack-file-based
- router-monorepo-react-query
- router-mono-simple
- router-mono-simple-lazy
- tanstack-router-react-example-scroll-restoration
- tanstack-search-validator-adapters
- tanstack-start-example-bare
- tanstack-start-example-basic
- tanstack-start-example-basic-auth
- tanstack-router-react-example-basic-authjs
- tanstack-start-example-basic-cloudflare
- tanstack-start-example-basic-react-query
- tanstack-start-example-basic-static
- tanstack-start-bun-hosting
- tanstack-start-example-clerk-basic
- tanstack-start-example-convex-trellaux
- tanstack-start-example-counter
- tanstack-start-i18n-paraglide
- tanstack-start-example-large
- tanstack-start-example-material-ui
- tanstack-start-example-rscs
- tanstack-start-streaming-data-from-server-functions
- tanstack-start-example-supabase-basic
- tanstack-start-tailwind-v4
- tanstack-start-example-trellaux
- tanstack-start-example-workos
- tanstack-router-react-example-view-transitions
- tanstack-router-react-example-with-framer-motion
- tanstack-router-react-example-with-trpc
- tanstack-router-react-example-with-trpc-react-query
- tanstack-router-solid-example-authenticated-routes
- tanstack-router-solid-example-authenticated-routes-firebase
- tanstack-router-solid-example-basic
- tanstack-router-solid-example-basic-default-search-params
- tanstack-router-solid-example-basic-devtools-panel
- tanstack-router-solid-example-basic-file-based
- tanstack-router-solid-example-basic-non-nested-devtools
- tanstack-router-solid-example-basic-solid-query
- tanstack-router-solid-example-basic-solid-query-file-based
- tanstack-router-solid-example-basic-ssr-file-based
- tanstack-router-solid-example-basic-ssr-streaming-file-based
- tanstack-router-solid-example-basic-virtual-file-based
- tanstack-router-solid-example-basic-virtual-inside-file-based
- tanstack-router-solid-example-deferred-data
- tanstack-router-solid-i18n-paraglide
- tanstack-router-solid-example-kitchen-sink
- tanstack-router-solid-example-kitchen-sink-file-based
- tanstack-router-solid-example-kitchen-sink-solid-query
- tanstack-router-solid-example-kitchen-sink-solid-query-file-based
- tanstack-router-solid-example-large-file-based
- tanstack-router-solid-example-location-masking
- tanstack-router-solid-example-navigation-blocking
- tanstack-router-solid-example-quickstart
- tanstack-router-solid-example-quickstart-esbuild-file-based
- tanstack-router-solid-example-quickstart-file-based
- tanstack-router-solid-example-quickstart-rspack-file-based
- tanstack-router-solid-example-quickstart-webpack-file-based
- @tanstack/router-solid-mono-simple
- router-solid-mono-simple-lazy
- router-solid-monorepo-solid-query
- tanstack-router-solid-example-scroll-restoration
- tanstack-solid-router-search-validator-adapters
- tanstack-solid-start-example-basic
- tanstack-solid-start-example-basic-auth
- tanstack-solid-start-example-basic-authjs
- tanstack-solid-start-example-basic-cloudflare
- tanstack-solid-start-example-basic-netlify
- tanstack-solid-start-example-basic-nitro
- tanstack-start-example-basic-solid-query
- tanstack-solid-start-example-basic-static
- tanstack-solid-start-bun-hosting
- tanstack-solid-start-example-convex-better-auth
- tanstack-solid-start-example-counter
- tanstack-solid-start-i18n-paraglide
- tanstack-solid-start-example-large
- tanstack-solid-start-streaming-data-from-server-functions
- tanstack-solid-start-example-supabase-basic
- tanstack-solid-start-tailwind-v4
- tanstack-router-solid-example-view-transitions
- tanstack-router-solid-example-with-framer-motion
- tanstack-router-solid-example-with-trpc
@tanstack/arktype-adapter
npm i https://pkg.pr.new/@tanstack/arktype-adapter@7178@tanstack/eslint-plugin-router
npm i https://pkg.pr.new/@tanstack/eslint-plugin-router@7178@tanstack/eslint-plugin-start
npm i https://pkg.pr.new/@tanstack/eslint-plugin-start@7178@tanstack/history
npm i https://pkg.pr.new/@tanstack/history@7178@tanstack/nitro-v2-vite-plugin
npm i https://pkg.pr.new/@tanstack/nitro-v2-vite-plugin@7178@tanstack/react-router
npm i https://pkg.pr.new/@tanstack/react-router@7178@tanstack/react-router-devtools
npm i https://pkg.pr.new/@tanstack/react-router-devtools@7178@tanstack/react-router-ssr-query
npm i https://pkg.pr.new/@tanstack/react-router-ssr-query@7178@tanstack/react-start
npm i https://pkg.pr.new/@tanstack/react-start@7178@tanstack/react-start-client
npm i https://pkg.pr.new/@tanstack/react-start-client@7178@tanstack/react-start-rsc
npm i https://pkg.pr.new/@tanstack/react-start-rsc@7178@tanstack/react-start-server
npm i https://pkg.pr.new/@tanstack/react-start-server@7178@tanstack/router-cli
npm i https://pkg.pr.new/@tanstack/router-cli@7178@tanstack/router-core
npm i https://pkg.pr.new/@tanstack/router-core@7178@tanstack/router-devtools
npm i https://pkg.pr.new/@tanstack/router-devtools@7178@tanstack/router-devtools-core
npm i https://pkg.pr.new/@tanstack/router-devtools-core@7178@tanstack/router-generator
npm i https://pkg.pr.new/@tanstack/router-generator@7178@tanstack/router-plugin
npm i https://pkg.pr.new/@tanstack/router-plugin@7178@tanstack/router-ssr-query-core
npm i https://pkg.pr.new/@tanstack/router-ssr-query-core@7178@tanstack/router-utils
npm i https://pkg.pr.new/@tanstack/router-utils@7178@tanstack/router-vite-plugin
npm i https://pkg.pr.new/@tanstack/router-vite-plugin@7178@tanstack/solid-router
npm i https://pkg.pr.new/@tanstack/solid-router@7178@tanstack/solid-router-devtools
npm i https://pkg.pr.new/@tanstack/solid-router-devtools@7178@tanstack/solid-router-ssr-query
npm i https://pkg.pr.new/@tanstack/solid-router-ssr-query@7178@tanstack/solid-start
npm i https://pkg.pr.new/@tanstack/solid-start@7178@tanstack/solid-start-client
npm i https://pkg.pr.new/@tanstack/solid-start-client@7178@tanstack/solid-start-server
npm i https://pkg.pr.new/@tanstack/solid-start-server@7178@tanstack/start-client-core
npm i https://pkg.pr.new/@tanstack/start-client-core@7178@tanstack/start-fn-stubs
npm i https://pkg.pr.new/@tanstack/start-fn-stubs@7178@tanstack/start-plugin-core
npm i https://pkg.pr.new/@tanstack/start-plugin-core@7178@tanstack/start-server-core
npm i https://pkg.pr.new/@tanstack/start-server-core@7178@tanstack/start-static-server-functions
npm i https://pkg.pr.new/@tanstack/start-static-server-functions@7178@tanstack/start-storage-context
npm i https://pkg.pr.new/@tanstack/start-storage-context@7178@tanstack/valibot-adapter
npm i https://pkg.pr.new/@tanstack/valibot-adapter@7178@tanstack/virtual-file-routes
npm i https://pkg.pr.new/@tanstack/virtual-file-routes@7178@tanstack/vue-router
npm i https://pkg.pr.new/@tanstack/vue-router@7178@tanstack/vue-router-devtools
npm i https://pkg.pr.new/@tanstack/vue-router-devtools@7178@tanstack/vue-router-ssr-query
npm i https://pkg.pr.new/@tanstack/vue-router-ssr-query@7178@tanstack/vue-start
npm i https://pkg.pr.new/@tanstack/vue-start@7178@tanstack/vue-start-client
npm i https://pkg.pr.new/@tanstack/vue-start-client@7178@tanstack/vue-start-server
npm i https://pkg.pr.new/@tanstack/vue-start-server@7178@tanstack/zod-adapter
npm i https://pkg.pr.new/@tanstack/zod-adapter@7178commit:
b8c884eActionable comments posted: 5
🧹 Nitpick comments (3)
packages/start-plugin-core/tests/createVirtualModule.test.ts (1)
1-38: LGTM! Good coverage of core virtual module ID resolution behavior.The tests effectively validate the
\0prefix for Vite virtual modules and the#→%23encoding for hash-prefixed module IDs. Theas anycasts are acceptable here for accessing plugin internals in test code.Consider adding edge case tests for non-matching IDs to verify the handler returns
undefined:💡 Optional: Additional edge case test
+ test('returns undefined for non-matching ids', () => { + const plugin = createVirtualModule({ + name: 'test-non-match', + moduleId: 'virtual:test-module', + load() { + return 'export const ok = true' + }, + }) + + expect((plugin as any).resolveId.handler('virtual:other-module')).toBeUndefined() + expect((plugin as any).load.handler('\0virtual:other-module')).toBeUndefined() + }),
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/start-plugin-core/tests/createVirtualModule.test.ts` around lines 1 - 38, Add an edge-case test in createVirtualModule.test.ts that ensures resolveId.handler and load.handler return undefined for non-matching IDs: create another test using a plugin from createVirtualModule (e.g., moduleId 'virtual:test-module' and '#virtual:test-module') and call resolveId.handler and load.handler with unrelated strings (like 'other-module' and '\0other-module') asserting they return undefined to validate non-matching behavior.packages/start-plugin-core/src/vite/createVirtualModule.ts (1)
4-7: Consider using Vite's plugin context type instead ofanyfor better type safety.The
this: anytype loses compile-time safety for properties likethis.environment,this.error(), etc. that are used in the load handlers throughout this PR.💡 Optional: Stricter typing using Vite's plugin context
+import type { Plugin, PluginContext } from 'vite' + +// Vite's load handler receives a PluginContext-like object with environment info +interface VirtualModuleLoadContext extends PluginContext { + environment: { name: string; mode: string; config: { command: string; consumer?: string } } +} type VirtualModuleLoadHandler = ( - this: any, + this: VirtualModuleLoadContext, id: string, ) => string | null | undefined | Promise<string | null | undefined>This is optional since
anyprovides flexibility, but stricter types would catch misuse at compile time.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/start-plugin-core/src/vite/createVirtualModule.ts` around lines 4 - 7, Replace the unsafe this: any in the VirtualModuleLoadHandler type with Vite's PluginContext to get proper typings for this.environment, this.error, etc.; import type { PluginContext } from 'vite' and update the type to use that symbol (e.g., this: PluginContext) so all load handlers using VirtualModuleLoadHandler gain compile-time safety while preserving behavior.packages/start-plugin-core/src/vite/plugins.ts (1)
20-22: Remove the redundant.replaceAll('\\', '/')afternormalizePath.Vite's
normalizePathalready normalizes all path separators to forward slashes. The additional.replaceAllcall has no effect and should be removed.♻️ Suggested simplification
load() { - return `import ${JSON.stringify(normalizePath(opts.getClientEntry()).replaceAll('\\', '/'))}` + return `import ${JSON.stringify(normalizePath(opts.getClientEntry()))}` },🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/start-plugin-core/src/vite/plugins.ts` around lines 20 - 22, The load() function currently returns a string using normalizePath(opts.getClientEntry()).replaceAll('\\', '/'); remove the redundant .replaceAll('\\', '/') because normalizePath already converts backslashes to forward slashes; update the load() return expression to use only normalizePath(opts.getClientEntry()) and keep the JSON.stringify wrapping as-is so the module import path remains correct.🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed. Inline comments: In `@packages/react-start-rsc/src/plugin/vite.ts`: - Around line 3-9: Move the inline "type" specifiers out of the mixed import and into a dedicated top-level type-only import: keep the runtime import for createVirtualModule from '@tanstack/start-plugin-core' and add a separate "import type { TanStackStartVitePluginCoreOptions, ViteRscForwardSsrResolverStrategy } from '@tanstack/start-plugin-core'". Update references to TanStackStartVitePluginCoreOptions and ViteRscForwardSsrResolverStrategy accordingly so the file no longer uses "type" inline specifiers in the mixed import. In `@packages/react-start/src/plugin/vite.ts`: - Around line 1-6: The current combined import mixes runtime values and types; split into a runtime import for START_ENVIRONMENT_NAMES and tanStackStartVite and a top-level type-only import for TanStackStartViteInputConfig and TanStackStartVitePluginCoreOptions to satisfy the import/consistent-type-specifier-style rule. Locate the import that currently includes START_ENVIRONMENT_NAMES, tanStackStartVite, type TanStackStartViteInputConfig, and type TanStackStartVitePluginCoreOptions and change it so runtime symbols (START_ENVIRONMENT_NAMES, tanStackStartVite) are imported normally and the two types are imported with an "import type" statement at the top level. In `@packages/solid-start/src/plugin/vite.ts`: - Around line 1-6: The import statement mixes value and type specifiers; separate the type-only imports into an `import type` clause: keep the runtime values START_ENVIRONMENT_NAMES and tanStackStartVite in the original import from '@tanstack/start-plugin-core' and move the type names TanStackStartViteInputConfig and TanStackStartVitePluginCoreOptions into a new `import type` statement so the code complies with the enforced type-specifier lint rule. In `@packages/start-plugin-core/src/vite/serialization-adapters-plugin.ts`: - Line 18: The load handler's explicit this type annotation (`load(this: { environment: { name: string } })`) narrows the Vite plugin context and must be removed; update the `load` function signature in `serialization-adapters-plugin.ts` to omit the `this` type (i.e., `load(...) { ... }`) so it uses the full Vite plugin `this` context used by `createVirtualModule` and `opts.load.call(this, id)`—do not replace it with a stricter custom type. In `@packages/vue-start/src/plugin/vite.ts`: - Around line 1-6: Move the two type-only imports into a top-level "import type" statement: keep the runtime imports (START_ENVIRONMENT_NAMES, tanStackStartVite) in the existing import block and move TanStackStartViteInputConfig and TanStackStartVitePluginCoreOptions into a separate "import type" line so the file imports look like runtime imports first and type imports second, satisfying import/consistent-type-specifier-style while preserving usage of START_ENVIRONMENT_NAMES and tanStackStartVite. --- Nitpick comments: In `@packages/start-plugin-core/src/vite/createVirtualModule.ts`: - Around line 4-7: Replace the unsafe this: any in the VirtualModuleLoadHandler type with Vite's PluginContext to get proper typings for this.environment, this.error, etc.; import type { PluginContext } from 'vite' and update the type to use that symbol (e.g., this: PluginContext) so all load handlers using VirtualModuleLoadHandler gain compile-time safety while preserving behavior. In `@packages/start-plugin-core/src/vite/plugins.ts`: - Around line 20-22: The load() function currently returns a string using normalizePath(opts.getClientEntry()).replaceAll('\\', '/'); remove the redundant .replaceAll('\\', '/') because normalizePath already converts backslashes to forward slashes; update the load() return expression to use only normalizePath(opts.getClientEntry()) and keep the JSON.stringify wrapping as-is so the module import path remains correct. In `@packages/start-plugin-core/tests/createVirtualModule.test.ts`: - Around line 1-38: Add an edge-case test in createVirtualModule.test.ts that ensures resolveId.handler and load.handler return undefined for non-matching IDs: create another test using a plugin from createVirtualModule (e.g., moduleId 'virtual:test-module' and '#virtual:test-module') and call resolveId.handler and load.handler with unrelated strings (like 'other-module' and '\0other-module') asserting they return undefined to validate non-matching behavior.🪄 Autofix (Beta)
✅ Autofix completed
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID:
fd152089-06da-4906-9253-954c82498789📥 Commits
Reviewing files that changed from the base of the PR and between 328d7e5ebc6b8074242a07d68ccafafb83e37a0e and 5f99d56f504175fcd54bd2ab9c363e9ed7831c59.
📒 Files selected for processing (16)
.changeset/rare-pigs-smash.mdpackages/react-start-rsc/src/plugin/vite.tspackages/react-start/src/plugin/vite.tspackages/solid-start/src/plugin/vite.tspackages/start-plugin-core/package.jsonpackages/start-plugin-core/src/index.tspackages/start-plugin-core/src/vite/createVirtualModule.tspackages/start-plugin-core/src/vite/dev-server-plugin/plugin.tspackages/start-plugin-core/src/vite/plugin.tspackages/start-plugin-core/src/vite/plugins.tspackages/start-plugin-core/src/vite/serialization-adapters-plugin.tspackages/start-plugin-core/src/vite/start-compiler-plugin/plugin.tspackages/start-plugin-core/src/vite/start-manifest-plugin/plugin.tspackages/start-plugin-core/tests/createVirtualModule.test.tspackages/start-plugin-core/tests/virtual-client-entry-plugin.test.tspackages/vue-start/src/plugin/vite.ts
💤 Files with no reviewable changes (1)
- packages/start-plugin-core/package.json
packages/react-start-rsc/src/plugin/vite.ts lines 3 to 9OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -1,9 +1,9 @@11 import { fileURLToPath } from 'node:url'22 import path from 'pathe'3-import { resolveViteId } from '@tanstack/start-plugin-core/utils'4-import type {5- TanStackStartVitePluginCoreOptions,6- ViteRscForwardSsrResolverStrategy,7-} from '@tanstack/start-plugin-core/vite/types'8-import type { Plugin, PluginOption, UserConfig } from 'vite'3+import {4+ createVirtualModule,5+ type TanStackStartVitePluginCoreOptions,6+ type ViteRscForwardSsrResolverStrategy,7+} from '@tanstack/start-plugin-core'8+import type { PluginOption, UserConfig } from 'vite'99⚠️ Potential issue | 🟡 Minor
Please split inline type specifiers into a top-level type import.
Line 5 and Line 6 currently violate the enforced
import/consistent-type-specifier-stylerule.Proposed fix
import { createVirtualModule, - type TanStackStartVitePluginCoreOptions, - type ViteRscForwardSsrResolverStrategy, } from '@tanstack/start-plugin-core' +import type { + TanStackStartVitePluginCoreOptions, + ViteRscForwardSsrResolverStrategy, +} from '@tanstack/start-plugin-core'📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Suggested change3-import {4- createVirtualModule,5- type TanStackStartVitePluginCoreOptions,6- type ViteRscForwardSsrResolverStrategy,7-} from '@tanstack/start-plugin-core'8-import type { PluginOption, UserConfig } from 'vite'9-3+import {4+ createVirtualModule,5+} from '@tanstack/start-plugin-core'6+import type {7+ TanStackStartVitePluginCoreOptions,8+ ViteRscForwardSsrResolverStrategy,9+} from '@tanstack/start-plugin-core'10+import type { PluginOption, UserConfig } from 'vite'🧰 Tools
🪛 ESLint
[error] 5-5: Member 'TanStackStartVitePluginCoreOptions' of the import declaration should be sorted alphabetically.
(sort-imports)
[error] 5-5: Prefer using a top-level type-only import instead of inline type specifiers.
(import/consistent-type-specifier-style)
[error] 6-6: Prefer using a top-level type-only import instead of inline type specifiers.
(import/consistent-type-specifier-style)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/react-start-rsc/src/plugin/vite.ts` around lines 3 - 9, Move the inline "type" specifiers out of the mixed import and into a dedicated top-level type-only import: keep the runtime import for createVirtualModule from '@tanstack/start-plugin-core' and add a separate "import type { TanStackStartVitePluginCoreOptions, ViteRscForwardSsrResolverStrategy } from '@tanstack/start-plugin-core'". Update references to TanStackStartVitePluginCoreOptions and ViteRscForwardSsrResolverStrategy accordingly so the file no longer uses "type" inline specifiers in the mixed import.✅ Addressed in commit be3b2b5
packages/react-start/src/plugin/vite.ts lines 1 to 8OutdatedResolvedby schiller-manuel(GitHub profile, opens in a new tab)@@ -1,4 +1,6 @@11 import {22 START_ENVIRONMENT_NAMES,33 tanStackStartVite,4+ type TanStackStartViteInputConfig,5+ type TanStackStartVitePluginCoreOptions,46 } from '@tanstack/start-plugin-core'⚠️ Potential issue | 🟡 Minor
Fix import style to satisfy current lint rules.
Line 4 and Line 5 currently trigger
import/consistent-type-specifier-style(and related import ordering checks). Please move these to a top-level type-only import.Proposed fix
import { START_ENVIRONMENT_NAMES, tanStackStartVite, - type TanStackStartViteInputConfig, - type TanStackStartVitePluginCoreOptions, } from '@tanstack/start-plugin-core' +import type { + TanStackStartViteInputConfig, + TanStackStartVitePluginCoreOptions, +} from '@tanstack/start-plugin-core'📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Suggested change1+import {2+ START_ENVIRONMENT_NAMES,3+ tanStackStartVite,4+} from '@tanstack/start-plugin-core'5+import type {6+ TanStackStartViteInputConfig,7+ TanStackStartVitePluginCoreOptions,8+} from '@tanstack/start-plugin-core'🧰 Tools
🪛 ESLint
[error] 4-4: Member 'TanStackStartViteInputConfig' of the import declaration should be sorted alphabetically.
(sort-imports)
[error] 4-4: Prefer using a top-level type-only import instead of inline type specifiers.
(import/consistent-type-specifier-style)
[error] 5-5: Prefer using a top-level type-only import instead of inline type specifiers.
(import/consistent-type-specifier-style)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/react-start/src/plugin/vite.ts` around lines 1 - 6, The current combined import mixes runtime values and types; split into a runtime import for START_ENVIRONMENT_NAMES and tanStackStartVite and a top-level type-only import for TanStackStartViteInputConfig and TanStackStartVitePluginCoreOptions to satisfy the import/consistent-type-specifier-style rule. Locate the import that currently includes START_ENVIRONMENT_NAMES, tanStackStartVite, type TanStackStartViteInputConfig, and type TanStackStartVitePluginCoreOptions and change it so runtime symbols (START_ENVIRONMENT_NAMES, tanStackStartVite) are imported normally and the two types are imported with an "import type" statement at the top level.✅ Addressed in commits b995366 to 4a67907
packages/solid-start/src/plugin/vite.ts lines 1 to 8OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -1,4 +1,6 @@11 import {22 START_ENVIRONMENT_NAMES,33 tanStackStartVite,4+ type TanStackStartViteInputConfig,5+ type TanStackStartVitePluginCoreOptions,46 } from '@tanstack/start-plugin-core'⚠️ Potential issue | 🟡 Minor
Align imports with enforced type-specifier lint style.
Line 4 and Line 5 should be moved into a separate
import typestatement to satisfy current lint configuration.Proposed fix
import { START_ENVIRONMENT_NAMES, tanStackStartVite, - type TanStackStartViteInputConfig, - type TanStackStartVitePluginCoreOptions, } from '@tanstack/start-plugin-core' +import type { + TanStackStartViteInputConfig, + TanStackStartVitePluginCoreOptions, +} from '@tanstack/start-plugin-core'📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Suggested change1+import {2+ START_ENVIRONMENT_NAMES,3+ tanStackStartVite,4+} from '@tanstack/start-plugin-core'5+import type {6+ TanStackStartViteInputConfig,7+ TanStackStartVitePluginCoreOptions,8+} from '@tanstack/start-plugin-core'🧰 Tools
🪛 ESLint
[error] 4-4: Member 'TanStackStartViteInputConfig' of the import declaration should be sorted alphabetically.
(sort-imports)
[error] 4-4: Prefer using a top-level type-only import instead of inline type specifiers.
(import/consistent-type-specifier-style)
[error] 5-5: Prefer using a top-level type-only import instead of inline type specifiers.
(import/consistent-type-specifier-style)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/solid-start/src/plugin/vite.ts` around lines 1 - 6, The import statement mixes value and type specifiers; separate the type-only imports into an `import type` clause: keep the runtime values START_ENVIRONMENT_NAMES and tanStackStartVite in the original import from '@tanstack/start-plugin-core' and move the type names TanStackStartViteInputConfig and TanStackStartVitePluginCoreOptions into a new `import type` statement so the code complies with the enforced type-specifier lint rule.✅ Addressed in commit be3b2b5
packages/start-plugin-core/src/vite/serialization-adapters-plugin.ts line 18OutdatedResolvedby schiller-manuel(GitHub profile, opens in a new tab)@@ -30,20 +18 @@30- handler(id: string) {31- if (id === VIRTUAL_MODULES.pluginAdapters) {32- return resolvedModuleId33- }34- return undefined35- },36- },37- load: {38- filter: {39- id: new RegExp(escapeRegex(resolvedModuleId)),40- },41- handler(this: { environment: { name: string } }, id: string) {42- if (id !== resolvedModuleId) {43- return undefined44- }45-46- const adapters = opts.adapters47- if (!adapters || adapters.length === 0) {48- return EMPTY_SERIALIZATION_ADAPTERS_MODULE49- }18+ load(this: { environment: { name: string } }) {🛠️ Refactor suggestion | 🟠 Major
Remove the explicit
thistype annotation - it narrows the Vite plugin context.The manual
this: { environment: { name: string } }type annotation is unnecessarily narrow and inconsistent with othercreateVirtualModuleusages in this PR (e.g.,dev-server-plugin,start-manifest-plugin). Theloadhandler receives the full Vite plugin context viaopts.load.call(this, id)increateVirtualModule.♻️ Suggested fix
- load(this: { environment: { name: string } }) { + load() {📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Suggested change18- load(this: { environment: { name: string } }) {18+ load() {🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/start-plugin-core/src/vite/serialization-adapters-plugin.ts` at line 18, The load handler's explicit this type annotation (`load(this: { environment: { name: string } })`) narrows the Vite plugin context and must be removed; update the `load` function signature in `serialization-adapters-plugin.ts` to omit the `this` type (i.e., `load(...) { ... }`) so it uses the full Vite plugin `this` context used by `createVirtualModule` and `opts.load.call(this, id)`—do not replace it with a stricter custom type.✅ Addressed in commit b995366
packages/vue-start/src/plugin/vite.ts lines 1 to 8OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -1,4 +1,6 @@11 import {22 START_ENVIRONMENT_NAMES,33 tanStackStartVite,4+ type TanStackStartViteInputConfig,5+ type TanStackStartVitePluginCoreOptions,46 } from '@tanstack/start-plugin-core'⚠️ Potential issue | 🟡 Minor
Use top-level type imports to clear lint errors.
Line 4 and Line 5 should be moved to a separate
import typeblock to satisfyimport/consistent-type-specifier-styleand keep import ordering clean.Proposed fix
import { START_ENVIRONMENT_NAMES, tanStackStartVite, - type TanStackStartViteInputConfig, - type TanStackStartVitePluginCoreOptions, } from '@tanstack/start-plugin-core' +import type { + TanStackStartViteInputConfig, + TanStackStartVitePluginCoreOptions, +} from '@tanstack/start-plugin-core'📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Suggested change1+import {2+ START_ENVIRONMENT_NAMES,3+ tanStackStartVite,4+} from '@tanstack/start-plugin-core'5+import type {6+ TanStackStartViteInputConfig,7+ TanStackStartVitePluginCoreOptions,8+} from '@tanstack/start-plugin-core'🧰 Tools
🪛 ESLint
[error] 4-4: Member 'TanStackStartViteInputConfig' of the import declaration should be sorted alphabetically.
(sort-imports)
[error] 4-4: Prefer using a top-level type-only import instead of inline type specifiers.
(import/consistent-type-specifier-style)
[error] 5-5: Prefer using a top-level type-only import instead of inline type specifiers.
(import/consistent-type-specifier-style)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/vue-start/src/plugin/vite.ts` around lines 1 - 6, Move the two type-only imports into a top-level "import type" statement: keep the runtime imports (START_ENVIRONMENT_NAMES, tanStackStartVite) in the existing import block and move TanStackStartViteInputConfig and TanStackStartVitePluginCoreOptions into a separate "import type" line so the file imports look like runtime imports first and type imports second, satisfying import/consistent-type-specifier-style while preserving usage of START_ENVIRONMENT_NAMES and tanStackStartVite.✅ Addressed in commit be3b2b5
Important
A [new CI pipeline execution](https://cloud.nx.app/cipes/69dd4e3991c7ef43d210d368) was requested that may update the conclusion below...Nx Cloud is proposing a fix for your failed CI:#
We fixed two ESLint violations introduced by the PR's import changes. In
start-plugin-core, the newly added../../utilsand../createVirtualModuleimports were placed after./module-specifier, violating theimport/orderrule — they have been reordered so parent-path imports precede sibling-path imports. Inreact-start-rsc, the mixed value+type import from@tanstack/start-plugin-corewas split into a separate value import and a top-levelimport typedeclaration to satisfyimport/consistent-type-specifier-styleandsort-importsrules.Tip
✅ We verified this fix by re-running
@tanstack/start-plugin-core:test:eslint,@tanstack/react-start-rsc:test:eslint.Suggested Fix changes
diff --git a/packages/react-start-rsc/src/plugin/vite.ts b/packages/react-start-rsc/src/plugin/vite.ts index a379e71169..a43bc7531c 100644 --- a/packages/react-start-rsc/src/plugin/vite.ts +++ b/packages/react-start-rsc/src/plugin/vite.ts @@ -1,9 +1,9 @@ import { fileURLToPath } from 'node:url' import path from 'pathe' -import { - createVirtualModule, - type TanStackStartVitePluginCoreOptions, - type ViteRscForwardSsrResolverStrategy, +import { createVirtualModule } from '@tanstack/start-plugin-core' +import type { + TanStackStartVitePluginCoreOptions, + ViteRscForwardSsrResolverStrategy, } from '@tanstack/start-plugin-core' import type { PluginOption, UserConfig } from 'vite' diff --git a/packages/start-plugin-core/src/vite/start-compiler-plugin/plugin.ts b/packages/start-plugin-core/src/vite/start-compiler-plugin/plugin.ts index d48fa65a27..de8bbea81c 100644 --- a/packages/start-plugin-core/src/vite/start-compiler-plugin/plugin.ts +++ b/packages/start-plugin-core/src/vite/start-compiler-plugin/plugin.ts @@ -15,12 +15,12 @@ import { import { loadModuleForViteCompiler } from '../../start-compiler/load-module' import { generateServerFnResolverModule } from '../../start-compiler/server-fn-resolver-module' import { cleanId } from '../../start-compiler/utils' +import { resolveViteId } from '../../utils' +import { createVirtualModule } from '../createVirtualModule' import { createViteDevServerFnModuleSpecifierEncoder, decodeViteDevServerModuleSpecifier, } from './module-specifier' -import { createVirtualModule } from '../createVirtualModule' -import { resolveViteId } from '../../utils' import type { CompileStartFrameworkOptions } from '../../types' import type { GenerateFunctionIdFnOptional,
Or Apply changes locally with:
Apply fix locally with your editor ↗ View interactive diff ↗npx nx-cloud apply-locally BGSz-KTYA
🎓 Learn more about Self-Healing CI on [nx.dev](https://nx.dev/docs/features/ci-features/self-healing-ci?utm_source=pull-request&utm_medium=comment)Merging this PR will not alter performance#
✅ 6untouched benchmarks
Comparingfix-6588(b8c884e) withmain(328d7e5)[^unexpected-base]Note
Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.
Fixes Applied Successfully#
Fixed 3 file(s) based on 3 unresolved review comments.
Files modified:
packages/react-start-rsc/src/plugin/vite.tspackages/solid-start/src/plugin/vite.tspackages/vue-start/src/plugin/vite.ts
Commit:
be3b2b504489d7774ab81784d5ce58cbfeafdc94The changes have been pushed to the
fix-6588branch.Time taken:
7m 13s♻️ Duplicate comments (1)
packages/react-start/src/plugin/vite.ts (1)
5-8: ⚠️ Potential issue | 🟡 MinorAdjust import order to satisfy
import/order.Line 5-8 currently violates the configured import ordering rule from static analysis. Move this type import below the
./sharedvalue import block.Proposed fix
import { START_ENVIRONMENT_NAMES, tanStackStartVite, } from '@tanstack/start-plugin-core' -import type { - TanStackStartViteInputConfig, - TanStackStartVitePluginCoreOptions, -} from '@tanstack/start-plugin-core' import { configureRsc, reactStartRscVitePlugin, } from '@tanstack/react-start-rsc/plugin/vite' import path from 'pathe' import { reactStartDefaultEntryPaths, reactStartPluginDir } from './shared' +import type { + TanStackStartViteInputConfig, + TanStackStartVitePluginCoreOptions, +} from '@tanstack/start-plugin-core' import type { PluginOption } from 'vite'🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@packages/react-start/src/plugin/vite.ts` around lines 5 - 8, Move the type-only import of TanStackStartViteInputConfig and TanStackStartVitePluginCoreOptions so it appears after the existing value import from './shared' to satisfy the import/order rule; locate the import statement currently bringing in those types and cut/paste it directly below the import that references './shared' (ensuring it remains a type import).🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed. Duplicate comments: In `@packages/react-start/src/plugin/vite.ts`: - Around line 5-8: Move the type-only import of TanStackStartViteInputConfig and TanStackStartVitePluginCoreOptions so it appears after the existing value import from './shared' to satisfy the import/order rule; locate the import statement currently bringing in those types and cut/paste it directly below the import that references './shared' (ensuring it remains a type import).
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID:
b9570a49-90e8-48fd-b09b-63abbd56abd7📥 Commits
Reviewing files that changed from the base of the PR and between 5f99d56f504175fcd54bd2ab9c363e9ed7831c59 and 4a67907fa8b6f0a4cf78f6a180e5ec7ef3116060.
📒 Files selected for processing (2)
packages/react-start/src/plugin/vite.tspackages/start-plugin-core/src/vite/serialization-adapters-plugin.ts
Nx Cloud is proposing a fix for your failed CI:#
We split the mixed value+type import from
@tanstack/start-plugin-coreinreact-start-rsc/src/plugin/vite.tsinto separate value andimport typedeclarations, resolvingimport/consistent-type-specifier-styleandsort-importsviolations introduced by the CodeRabbit auto-fix. We also ensured the newly added../../utilsand../createVirtualModuleimports instart-compiler-plugin/plugin.tsare ordered before the./module-specifiersibling import, satisfying theimport/orderrule.Tip
✅ We verified this fix by re-running
@tanstack/start-plugin-core:test:eslint,@tanstack/react-start-rsc:test:eslint.Suggested Fix changes
diff --git a/packages/react-start-rsc/src/plugin/vite.ts b/packages/react-start-rsc/src/plugin/vite.ts index a379e71169..a43bc7531c 100644 --- a/packages/react-start-rsc/src/plugin/vite.ts +++ b/packages/react-start-rsc/src/plugin/vite.ts @@ -1,9 +1,9 @@ import { fileURLToPath } from 'node:url' import path from 'pathe' -import { - createVirtualModule, - type TanStackStartVitePluginCoreOptions, - type ViteRscForwardSsrResolverStrategy, +import { createVirtualModule } from '@tanstack/start-plugin-core' +import type { + TanStackStartVitePluginCoreOptions, + ViteRscForwardSsrResolverStrategy, } from '@tanstack/start-plugin-core' import type { PluginOption, UserConfig } from 'vite' diff --git a/packages/start-plugin-core/src/vite/start-compiler-plugin/plugin.ts b/packages/start-plugin-core/src/vite/start-compiler-plugin/plugin.ts index d48fa65a27..de8bbea81c 100644 --- a/packages/start-plugin-core/src/vite/start-compiler-plugin/plugin.ts +++ b/packages/start-plugin-core/src/vite/start-compiler-plugin/plugin.ts @@ -15,12 +15,12 @@ import { import { loadModuleForViteCompiler } from '../../start-compiler/load-module' import { generateServerFnResolverModule } from '../../start-compiler/server-fn-resolver-module' import { cleanId } from '../../start-compiler/utils' +import { resolveViteId } from '../../utils' +import { createVirtualModule } from '../createVirtualModule' import { createViteDevServerFnModuleSpecifierEncoder, decodeViteDevServerModuleSpecifier, } from './module-specifier' -import { createVirtualModule } from '../createVirtualModule' -import { resolveViteId } from '../../utils' import type { CompileStartFrameworkOptions } from '../../types' import type { GenerateFunctionIdFnOptional,
Or Apply changes locally with:
Apply fix locally with your editor ↗ View interactive diff ↗npx nx-cloud apply-locally 6TIk-o2Ef
🎓 Learn more about Self-Healing CI on [nx.dev](https://nx.dev/docs/features/ci-features/self-healing-ci?utm_source=pull-request&utm_medium=comment)✅ The fix from Nx Cloud was applied#
We fixed the ESLint
import/orderviolation instart-compiler-plugin/plugin.tsthat was introduced when the PR addedcreateVirtualModuleandresolveViteIdimports after the existing./module-specifierimport. Moving those two imports above./module-specifierrestores the correct order (parent-directory before same-directory), resolving the lint failure.Tip
✅ We verified this fix by re-running
@tanstack/start-plugin-core:test:eslint.View interactive diff ↗Suggested Fix changes
diff --git a/packages/start-plugin-core/src/vite/start-compiler-plugin/plugin.ts b/packages/start-plugin-core/src/vite/start-compiler-plugin/plugin.ts index d48fa65a27..7ef0cecfcd 100644 --- a/packages/start-plugin-core/src/vite/start-compiler-plugin/plugin.ts +++ b/packages/start-plugin-core/src/vite/start-compiler-plugin/plugin.ts @@ -15,12 +15,12 @@ import { import { loadModuleForViteCompiler } from '../../start-compiler/load-module' import { generateServerFnResolverModule } from '../../start-compiler/server-fn-resolver-module' import { cleanId } from '../../start-compiler/utils' +import { createVirtualModule } from '../createVirtualModule' +import { resolveViteId } from '../../utils' import { createViteDevServerFnModuleSpecifierEncoder, decodeViteDevServerModuleSpecifier, } from './module-specifier' -import { createVirtualModule } from '../createVirtualModule' -import { resolveViteId } from '../../utils' import type { CompileStartFrameworkOptions } from '../../types' import type { GenerateFunctionIdFnOptional,
➡️ This fix was applied by manuel.schiller@caligano.de
🎓 Learn more about Self-Healing CI on [nx.dev](https://nx.dev/docs/features/ci-features/self-healing-ci?utm_source=pull-request&utm_medium=comment)
Sign in to join this conversation.
Note
Reviews paused#
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
reviews.auto_review.auto_pause_after_reviewed_commitssetting.Use the following commands to manage reviews:
@coderabbitai resumeto resume automatic reviews.@coderabbitai reviewto trigger a single review.Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID:
02a2b577-bd99-4deb-b504-16cf8468df34📥 Commits
Reviewing files that changed from the base of the PR and between b4b117267223f7ed14dbd6357a6ccf56f6ab55b0 and b8c884e1371cef18e12686af125bd741cf90bc84.
📒 Files selected for processing (1)
packages/start-plugin-core/src/vite/start-compiler-plugin/plugin.ts🚧 Files skipped from review as they are similar to previous changes (1)
📝 Walkthrough
Walkthrough#
Adds a shared Vite virtual-module factory (
createVirtualModule), migrates multiple Start plugins to use it, introduces a virtual client-entry plugin, updates core exports and consumer type imports, adds tests, and includes a changeset describing virtual-module resolution fixes.Changes#
packages/start-plugin-core/src/vite/createVirtualModule.tscreateVirtualModulefactory to standardize Vite virtual-moduleresolveId/loadwiring and escape#in module IDs.packages/start-plugin-core/src/vite/dev-server-plugin/plugin.ts,packages/start-plugin-core/src/vite/serialization-adapters-plugin.ts,packages/start-plugin-core/src/vite/start-compiler-plugin/plugin.ts,packages/start-plugin-core/src/vite/start-manifest-plugin/plugin.tscreateVirtualModule, removing bespoke resolve/load filtering and local ID-escaping logic.packages/start-plugin-core/src/vite/plugins.ts,packages/start-plugin-core/src/vite/plugin.tscreateVirtualClientEntryPluginand registers it to emit a normalized virtual client entry before manifest generation.packages/start-plugin-core/src/index.ts,packages/start-plugin-core/package.jsoncreateVirtualModuleand an additional type; removes./vite/typespackage subpath export.packages/react-start/src/plugin/vite.ts,packages/react-start-rsc/src/plugin/vite.ts,packages/solid-start/src/plugin/vite.ts,packages/vue-start/src/plugin/vite.ts@tanstack/start-plugin-coreexports;react-start-rscnow uses sharedcreateVirtualModule.packages/start-plugin-core/tests/createVirtualModule.test.ts,packages/start-plugin-core/tests/virtual-client-entry-plugin.test.ts.changeset/rare-pigs-smash.mdSequence Diagram(s)#
Estimated code review effort#
🎯 4 (Complex) | ⏱️ ~45 minutes
Suggested reviewers#
Poem#
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)#
✅ Passed checks (4 passed)
createVirtualModulehelper across multiple plugin files.#6588by implementing a new sharedcreateVirtualModulehelper and acreateVirtualClientEntryPluginthat serve the client entry through a real Vite virtual module, resolving symlink issues in pnpm workspaces../vite/typesexport path, refactoring existing virtual module implementations to use the shared helper, and consolidating type imports across framework plugins.✨ Finishing Touches
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands and usage tips.