Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

hi-ogawa
Copy link
Contributor

@hi-ogawa hi-ogawa commented Aug 2, 2025

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

List any relevant issue numbers:

Description

Similar to #6041 addressed ExternalVariable, this PR also guards against optimizing SyntheticNamedExportVariable. I'm not sure if this can be accurately tree-shaken with proper analysis, but for now, this simply bails out optimization to keep the previous behavior and avoid breakage.

Copy link

vercel bot commented Aug 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rollup Ready Ready Preview Comment Aug 18, 2025 6:05am

@hi-ogawa hi-ogawa marked this pull request as ready for review August 2, 2025 01:57
Copy link

codecov bot commented Aug 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.79%. Comparing base (f74df5e) to head (9dcae2f).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6052   +/-   ##
=======================================
  Coverage   98.79%   98.79%           
=======================================
  Files         271      271           
  Lines       10598    10599    +1     
  Branches     2830     2831    +1     
=======================================
+ Hits        10470    10471    +1     
  Misses         88       88           
  Partials       40       40           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix looks good to me, thanks a lot!

@lukastaegert lukastaegert added this pull request to the merge queue Aug 20, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 20, 2025
@lukastaegert lukastaegert added this pull request to the merge queue Aug 20, 2025
Merged via the queue into rollup:master with commit 2c52663 Aug 20, 2025
41 checks passed
@hi-ogawa hi-ogawa deleted the fix-no-tree-shake-in-syntheticNamedExports branch August 20, 2025 05:20
Copy link

This PR has been released as part of [email protected]. You can test it via npm install rollup.

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.

in namespace tree shake works incorrectly with commonjs plugin
3 participants