Skip to content

docs: mention CJS namespace import workaround#22519

Open
Caltsic wants to merge 1 commit into
vitejs:mainfrom
Caltsic:docs/cjs-namespace-interop
Open

docs: mention CJS namespace import workaround#22519
Caltsic wants to merge 1 commit into
vitejs:mainfrom
Caltsic:docs/cjs-namespace-interop

Conversation

@Caltsic
Copy link
Copy Markdown
Contributor

@Caltsic Caltsic commented May 25, 2026

Description

Refs #22435.

Documents the default-import workaround for legacy CJS packages whose module.exports object is mutated by another CJS module. This keeps the migration guide focused on the CJS interop behavior change without treating it as a Rolldown bug.

Additional context

This is the pattern discussed in #22435 and rolldown/rolldown#9512, for example backbone with backbone-relational.

What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

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