Skip to content
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

Render emtpy block comments after tree-shaken statements #5231

Merged
merged 2 commits into from Oct 31, 2023

Conversation

lukastaegert
Copy link
Member

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

There was a subtle bug in the statement list tree-shaking logic that has been there for years but strangely did not yet come up, basically an off-by-one error.

@vercel
Copy link

vercel bot commented Oct 30, 2023

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 Oct 30, 2023 8:40pm

@lukastaegert lukastaegert changed the title Render emtpy blick comments after tree-shaken statements Render emtpy block comments after tree-shaken statements Oct 30, 2023
@codecov
Copy link

codecov bot commented Oct 30, 2023

Codecov Report

Merging #5231 (8646665) into master (08d65d1) will not change coverage.
Report is 1 commits behind head on master.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #5231   +/-   ##
=======================================
  Coverage   98.82%   98.82%           
=======================================
  Files         231      231           
  Lines        8850     8850           
  Branches     2315     2315           
=======================================
  Hits         8746     8746           
  Misses         43       43           
  Partials       61       61           
Files Coverage Δ
src/utils/renderHelpers.ts 100.00% <100.00%> (ø)

@github-actions
Copy link

github-actions bot commented Oct 30, 2023

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#gh-5230-empty-block

Notice: Ensure you have installed Rust nightly. If you haven't installed it yet, please first see https://www.rust-lang.org/tools/install to learn how to download Rustup and install Rust, then see https://rust-lang.github.io/rustup/concepts/channels.html to learn how to install Rust nightly.

or load it into the REPL:
https://rollup-qq6mapazu-rollup-js.vercel.app/repl/?pr=5231

@lukastaegert lukastaegert merged commit 835a7fa into master Oct 31, 2023
27 checks passed
@lukastaegert lukastaegert deleted the gh-5230-empty-block branch October 31, 2023 05:25
@github-actions
Copy link

This PR has been released as part of rollup@4.1.6. 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.

empty trailing comment /**/ can freeze rollup
1 participant