Skip to content

Conversation

@9aoy
Copy link
Contributor

@9aoy 9aoy commented Jul 9, 2025

Summary

Fix unexpected resolution of vue to vue.cjs.prod.js when NODE_ENV=test.

By default, Rspack treats NODE_ENV=test as production in some cases (e.g., conditionNames). However, frameworks like Vue and React (and tools like Vitest) expect test to follow development-mode behavior.

image

image

image

https://github.com/web-infra-dev/rspack/blob/8671bc16eb74961dcd98a5bb03eae4efce936914/packages/rspack/src/config/defaults.ts#L1069

Related Links

Checklist

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

@netlify
Copy link

netlify bot commented Jul 9, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 655aed8
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/686e4c9c0f79ee000874391a
😎 Deploy Preview https://deploy-preview-374--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.

@9aoy 9aoy requested a review from fi3ework July 9, 2025 10:01
@fi3ework fi3ework merged commit 4e27bb0 into main Jul 9, 2025
14 checks passed
@fi3ework fi3ework deleted the test-mode branch July 9, 2025 11:14
@9aoy 9aoy mentioned this pull request Jul 11, 2025
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.

3 participants