Skip to content

Conversation

@hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Nov 28, 2025

Description

Part of #8754

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.
  • Please check Allow edits by maintainers to make review process faster. Note that this option is not available for repositories that are owned by Github organizations.

Tests

  • Run the tests with pnpm test:ci.

Documentation

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

@netlify
Copy link

netlify bot commented Nov 28, 2025

Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 63eb79a
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6929014f2f62e0000859bc43
😎 Deploy Preview https://deploy-preview-9121--vitest-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.

@hi-ogawa hi-ogawa changed the title fix: use optimizeDeps.rolldownOptions to fix depreated warning fix: use optimizeDeps.rolldownOptions to fix depreated warning + fix ssr.external: true Nov 28, 2025
// https://github.com/vitejs/vite/pull/20502
if (name === 'ssr') {
delete config.ssr?.noExternal
delete config.ssr?.external
Copy link
Contributor Author

@hi-ogawa hi-ogawa Nov 28, 2025

Choose a reason for hiding this comment

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

This is to fix a following error https://github.com/vitest-dev/vitest/actions/runs/19751896072/job/56596264117?pr=9121#step:8:800

   FAIL  test/vite-ssr-resolve.test.ts > VitestResolver with Vite SSR config in deprecated style > handles ssr.resolve.external as true
  Error: Value is non of these types `True`, `Array<T>`,  on BindingViteResolvePluginConfig.external

Similar to ssr.noExternal, Vitest intend to fully overwrite through environments.ssr.resolve.external, so legacy ssr.external can be reset here.


I created a fix on Vite too vitejs/vite#21164

@hi-ogawa hi-ogawa marked this pull request as ready for review November 28, 2025 02:55
@sheremet-va sheremet-va merged commit fd8bd6d into vitest-dev:main Nov 28, 2025
14 of 16 checks passed
@hi-ogawa hi-ogawa deleted the 11-28-fix_use_optimizedeps.rolldownoptions_to_fix_depreated_warning branch November 28, 2025 09:31
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.

2 participants