Skip to content

vp migrate beta test#10

Draft
fengmk2 wants to merge 1 commit into
mainfrom
vp-migrate-test
Draft

vp migrate beta test#10
fengmk2 wants to merge 1 commit into
mainfrom
vp-migrate-test

Conversation

@fengmk2

@fengmk2 fengmk2 commented Jun 29, 2026

Copy link
Copy Markdown
Owner

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the project to use Vite+ as the unified toolchain, updating configuration files, VS Code settings, and documentation (AGENTS.md). It updates package dependencies and type declarations to reference vite-plus instead of vite, and locks catalog versions to a specific commit. The review feedback suggests improving type accuracy in packages/vite-plugin-remdx/index.d.ts by returning Plugin instead of PluginOption to match the implementation in index.ts.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread packages/vite-plugin-remdx/index.d.ts Outdated
Comment on lines 1 to 3
import type { PluginOption } from 'vite-plus';

export default function remdx(): PluginOption;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better type accuracy and consistency with the implementation in index.ts (which returns Plugin), the declaration file should also return Plugin instead of the wider PluginOption type. This ensures that consumers of the plugin get the most precise type definition without unnecessary union types.

Suggested change
import type { PluginOption } from 'vite-plus';
export default function remdx(): PluginOption;
import type { Plugin } from 'vite-plus';
export default function remdx(): Plugin;

@fengmk2 fengmk2 closed this Jun 29, 2026
@fengmk2 fengmk2 deleted the vp-migrate-test branch June 29, 2026 14:37
@fengmk2 fengmk2 restored the vp-migrate-test branch June 29, 2026 14:37
@fengmk2 fengmk2 reopened this Jun 29, 2026
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