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

Allow function expression parameters to shadow the function id #5262

Merged
merged 3 commits into from Nov 21, 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

In order for the new conflict detection logic to work, function expression ids need to be in a separate scope from the parameters.

Copy link

vercel bot commented Nov 21, 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 Nov 21, 2023 6:13am

Copy link

github-actions bot commented Nov 21, 2023

Thank you for your contribution! ❤️

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

npm install rollup/rollup#gh-5259-duplicate-function-id

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-nd0pld54h-rollup-js.vercel.app/repl/?pr=5262

Copy link

codecov bot commented Nov 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ce6f492) 98.87% compared to head (4ed0707) 98.87%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5262   +/-   ##
=======================================
  Coverage   98.87%   98.87%           
=======================================
  Files         232      232           
  Lines        8941     8945    +4     
  Branches     2333     2334    +1     
=======================================
+ Hits         8840     8844    +4     
  Misses         42       42           
  Partials       59       59           

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

@lukastaegert lukastaegert merged commit 2ebab0c into master Nov 21, 2023
27 checks passed
@lukastaegert lukastaegert deleted the gh-5259-duplicate-function-id branch November 21, 2023 20:01
Copy link

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

RollupError: Identifier has already been declared
2 participants