Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
This PR adds a configurable test option to the Vue plugin, enabling users to customize which file types should be treated as Vue Single File Components. This is particularly useful when using other loaders to transform files (like .md files) into Vue components.
- Added a
testoption toPluginVueOptionsthat acceptsRspack.RuleSetCondition - Updated the webpack chain configuration to use the custom test condition instead of hardcoded
.vuepattern - Added comprehensive test coverage and documentation in both English and Chinese
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/plugin-vue/src/index.ts | Added test option type definition and implementation to allow custom file matching patterns |
| packages/plugin-vue/tests/index.test.ts | Added test case to verify custom test condition works with .md files |
| packages/plugin-vue/tests/snapshots/index.test.ts.snap | Added snapshot for the custom test condition test case |
| website/docs/en/plugins/list/plugin-vue.mdx | Added English documentation for the new test option with usage example |
| website/docs/zh/plugins/list/plugin-vue.mdx | Added Chinese documentation for the new test option with usage example |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Summary
Allow customizing the file matching rules for Vue Single File Components through the
testoption. This enables handling additional file types like.mdfiles when they are transformed into Vue components.Checklist