Skip to content

fix: rspack context in windows#868

Merged
9aoy merged 5 commits intomainfrom
vue-monorepo
Jan 15, 2026
Merged

fix: rspack context in windows#868
9aoy merged 5 commits intomainfrom
vue-monorepo

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Jan 15, 2026

Summary

Fixed a Windows path issue when running Rstest test Vue projects in a monorepo.

On Windows, process.cwd() returns paths in native format (using backslashes\,eg. C:\Users\Admin\xxx). Passing this path directly to the Rspack context, and then to vue-loader, works as expected.

However, after Rstest applies path normalization, the path passed to the Rspack context is converted (/, eg. C:/Users/Admin/xxx), which then leads to unexpected behavior when handled by vue-loader.

Although this issue appears to be related to vue-loader’s path compatibility, we chose to preserve native Windows paths when passing them to the Rspack context, ensuring better compatibility with the majority of loaders when running on Windows.

Related Links

fix #865

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings January 15, 2026 04:24
@netlify
Copy link
Copy Markdown

netlify bot commented Jan 15, 2026

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit b4d08d5
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/69687e785eab1800089a54e6
😎 Deploy Preview https://deploy-preview-868--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a 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 adds a new Vue test fixture package for end-to-end testing, located at e2e/projects/fixtures/packages/client-vue/. The purpose appears to be related to fixing an rspack context issue on Windows based on the title, though the changes shown are primarily about adding a new test fixture structure.

Changes:

  • Added a new client-vue fixture package with Vue 3 and Rsbuild configuration
  • Configured test setup with @vue/test-utils and happy-dom environment
  • Updated pnpm-lock.yaml with new dependencies for the Vue fixture

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pnpm-lock.yaml Added dependency entries for the new client-vue fixture package
e2e/projects/fixtures/packages/client-vue/package.json Package configuration with Vue dependencies and build scripts
e2e/projects/fixtures/packages/client-vue/tsconfig.json TypeScript configuration for Vue with JSX and ESM support
e2e/projects/fixtures/packages/client-vue/rsbuild.config.ts Rsbuild configuration with Vue plugin
e2e/projects/fixtures/packages/client-vue/rstest.config.ts Test configuration extending rsbuild config with happy-dom environment
e2e/projects/fixtures/packages/client-vue/src/index.js Vue app entry point
e2e/projects/fixtures/packages/client-vue/src/App.vue Vue single file component with template, script, and styles
e2e/projects/fixtures/packages/client-vue/test/index.test.ts Test file for the Vue component
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

9aoy and others added 4 commits January 15, 2026 13:01
@9aoy 9aoy changed the title WIP: fix: rspack context in windows fix: rspack context in windows Jan 15, 2026
@9aoy 9aoy merged commit 1d7bcab into main Jan 15, 2026
34 of 37 checks passed
@9aoy 9aoy deleted the vue-monorepo branch January 15, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Testing a Vue monorepo on Windows does not work

2 participants