Skip to content

Conversation

@sodiumjoe
Copy link

Rollup Plugin Name: {name}

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers:

resolves #1771

Description

This fix resolves a bug where conditional exports in LogicalExpression (||) with falsy right operands are not properly transformed, causing "ReferenceError: exports is not defined" in ES module builds.

@sodiumjoe sodiumjoe requested a review from shellscape as a code owner December 5, 2025 00:35
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.

[plugin-commonjs] Untransformed exports in conditional branch

1 participant