Skip to content

fix(rolldown): MaybeWeakMap not actually using the WeakMap#370

Open
Rel1cx wants to merge 1 commit into
vitejs:mainfrom
Rel1cx:fix/maybe-weak-map-key-routing
Open

fix(rolldown): MaybeWeakMap not actually using the WeakMap#370
Rel1cx wants to merge 1 commit into
vitejs:mainfrom
Rel1cx:fix/maybe-weak-map-key-routing

Conversation

@Rel1cx
Copy link
Copy Markdown

@Rel1cx Rel1cx commented May 30, 2026

Description

This PR fixed a bug in packages/rolldown/src/app/utils/cache.ts where MaybeWeakMap wasn't actually using the WeakMap, all objects were set to a regular Map.

Linked Issues

Additional context

Discovering this bug was accidental, but the PR fixed it nonetheless. A few additional test cases were manually written then completed using LLM.

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.

1 participant