Skip to content

fix(binop/in): don't optimize external references away #6042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2025

Conversation

cyyynthia
Copy link
Contributor

Seems like I broke quite a few things with my optimization thing q_q


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:

fixes #6035 (pt. 2)
fixes withastro/astro#14152

Description

Makes sure the 'export' in ns optimization is not applied to external references, including when the reference to an external module happens indirectly through reexports of a non-external module.

Copy link

vercel bot commented Jul 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 29, 2025 1:42pm

Copy link

codecov bot commented Jul 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.77%. Comparing base (244dc20) to head (a294950).
⚠️ Report is 3 commits behind head on fix/6040.

Additional details and impacted files
@@            Coverage Diff            @@
##           fix/6040    #6042   +/-   ##
=========================================
  Coverage     98.77%   98.77%           
=========================================
  Files           271      271           
  Lines         10597    10599    +2     
  Branches       2828     2829    +1     
=========================================
+ Hits          10467    10469    +2     
  Misses           89       89           
  Partials         41       41           

☔ 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.

@TrickyPi
Copy link
Member

TrickyPi commented Jul 29, 2025

Hi @cyyynthia, Thanks for your quick reactions! Could you merge your changes into PR #6041? That way, people can verify our fix all in one PR.

@cyyynthia cyyynthia changed the base branch from master to fix/6040 July 29, 2025 15:15
@cyyynthia
Copy link
Contributor Author

It seems after changing the PR target branch, it can be merged into yours cleanly according to GitHub 😄

@TrickyPi TrickyPi merged commit 7461018 into rollup:fix/6040 Jul 29, 2025
41 checks passed
@cyyynthia cyyynthia deleted the fix-ext-ns-in branch July 29, 2025 15:35
github-merge-queue bot pushed a commit that referenced this pull request Jul 29, 2025
…xternal references away (#6041)

* correct the logic of include in BinaryExpression

* Improve coverage

* fix(binop/in): don't optimize external references away (#6042)

fixes #6035 (pt. 2)
fixes withastro/astro#14152

* Ensure that includeNode is always called first similar to other nodes

---------

Co-authored-by: Cynthia <cynthia@cynthia.dev>
Co-authored-by: Lukas Taegert-Atkinson <lukas.taegert-atkinson@tngtech.com>
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.

Netlify deployment fails with TypeError: serverEntrypointModule[_start] is not a function in check is broken in Rollup 4.46.0
2 participants