-
-
Notifications
You must be signed in to change notification settings - Fork 248
fix(plugin-vue): treat it as a client build when calling from Rstest #6779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR simplifies the configuration required for rstest users by automatically detecting when the plugin is called from rstest and setting isServerBuild: false by default, since rstest always runs tests in a DOM environment.
Key Changes:
- Automatically sets
isServerBuild: falsein vue-loader options whencallerName === 'rstest' - Removes the manual
isServerBuildconfiguration from rstest template files
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
packages/plugin-vue/src/index.ts |
Adds logic to detect rstest caller and automatically set isServerBuild: false |
packages/create-rsbuild/template-rstest/vue-ts/rstest.config.ts |
Simplifies configuration by removing manual isServerBuild setting |
packages/create-rsbuild/template-rstest/vue-js/rstest.config.js |
Simplifies configuration by removing manual isServerBuild setting |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Summary
fix(plugin-vue): treat it as a client build when calling from rstest, since it always test in dom environment.
reduce
isServerBuildconfiguration in user config file.Related Links
Checklist