[PR #977] [MERGED] fix: accept experimental.swcEnvOptions config without erroring #997

Closed
opened 2026-05-06 13:11:28 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/cloudflare/vinext/pull/977
Author: @Divkix
Created: 4/30/2026
Status: Merged
Merged: 4/30/2026
Merged by: @james-elicx

Base: mainHead: fix/774-support-swcenvoptions


📝 Commits (3)

  • 4978e71 fix: accept experimental.swcEnvOptions config without erroring (#774)
  • e771c95 refactor: align swcEnvOptions messaging and add test coverage
  • 6293a3c fix(check): update test assertion for swcEnvOptions message

📊 Changes

4 files changed (+70 additions, -0 deletions)

View changed files

📝 packages/vinext/src/check.ts (+5 -0)
📝 packages/vinext/src/config/next-config.ts (+9 -0)
📝 tests/check.test.ts (+20 -0)
📝 tests/next-config.test.ts (+36 -0)

📄 Description

Fixes #774

Summary

  • Accept experimental.swcEnvOptions in config without erroring (vinext uses Vite for transforms, not SWC)
  • Add CONFIG_SUPPORT entry in check.ts (unsupported with detail message)
  • Emit console.warn when experimental.swcEnvOptions is present during config resolution
  • Add tests for analyzeConfig detection and dot-notation matching

Test plan

  • Added experimental.swcEnvOptions to CONFIG_SUPPORT in check.ts
  • Added explicit test for unsupported status detection
  • Added entry to it.each dot-notation test table
  • All 162 tests pass (tests/check.test.ts, tests/next-config.test.ts)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cloudflare/vinext/pull/977 **Author:** [@Divkix](https://github.com/Divkix) **Created:** 4/30/2026 **Status:** ✅ Merged **Merged:** 4/30/2026 **Merged by:** [@james-elicx](https://github.com/james-elicx) **Base:** `main` ← **Head:** `fix/774-support-swcenvoptions` --- ### 📝 Commits (3) - [`4978e71`](https://github.com/cloudflare/vinext/commit/4978e7127c9baea775e62d1fb6418613c4fe723f) fix: accept experimental.swcEnvOptions config without erroring (#774) - [`e771c95`](https://github.com/cloudflare/vinext/commit/e771c9551da5e5fc73f093ab9ce9c36e91741656) refactor: align swcEnvOptions messaging and add test coverage - [`6293a3c`](https://github.com/cloudflare/vinext/commit/6293a3c738ee1d514da70835558f388b16dcc049) fix(check): update test assertion for swcEnvOptions message ### 📊 Changes **4 files changed** (+70 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/vinext/src/check.ts` (+5 -0) 📝 `packages/vinext/src/config/next-config.ts` (+9 -0) 📝 `tests/check.test.ts` (+20 -0) 📝 `tests/next-config.test.ts` (+36 -0) </details> ### 📄 Description Fixes #774 ## Summary - Accept `experimental.swcEnvOptions` in config without erroring (vinext uses Vite for transforms, not SWC) - Add `CONFIG_SUPPORT` entry in `check.ts` (unsupported with detail message) - Emit console.warn when `experimental.swcEnvOptions` is present during config resolution - Add tests for `analyzeConfig` detection and dot-notation matching ## Test plan - Added `experimental.swcEnvOptions` to `CONFIG_SUPPORT` in `check.ts` - Added explicit test for unsupported status detection - Added entry to `it.each` dot-notation test table - All 162 tests pass (`tests/check.test.ts`, `tests/next-config.test.ts`) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 13:11:28 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#997
No description provided.