[PR #650] [MERGED] feat(optimize-imports): support rename exports #745

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

📋 Pull Request Information

Original PR: https://github.com/cloudflare/vinext/pull/650
Author: @hyoban
Created: 3/22/2026
Status: Merged
Merged: 3/23/2026
Merged by: @james-elicx

Base: mainHead: 3-22-optimize-deps


📝 Commits (1)

  • cebc9a8 feat(optimize-imports): support rename exports

📊 Changes

2 files changed (+112 additions, -7 deletions)

View changed files

📝 packages/vinext/src/plugins/optimize-imports.ts (+53 -7)
📝 tests/optimize-imports.test.ts (+59 -0)

📄 Description

@headlessui/react's Listbox is exported like this

let Mo = Object.assign(...)
export { Mo as Listbox, ... }

🔄 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/650 **Author:** [@hyoban](https://github.com/hyoban) **Created:** 3/22/2026 **Status:** ✅ Merged **Merged:** 3/23/2026 **Merged by:** [@james-elicx](https://github.com/james-elicx) **Base:** `main` ← **Head:** `3-22-optimize-deps` --- ### 📝 Commits (1) - [`cebc9a8`](https://github.com/cloudflare/vinext/commit/cebc9a821930a4f4b50ea40470d616c12a3c430c) feat(optimize-imports): support rename exports ### 📊 Changes **2 files changed** (+112 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/vinext/src/plugins/optimize-imports.ts` (+53 -7) 📝 `tests/optimize-imports.test.ts` (+59 -0) </details> ### 📄 Description `@headlessui/react`'s Listbox is exported like this ```ts let Mo = Object.assign(...) export { Mo as Listbox, ... } ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 13:09:54 +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#745
No description provided.