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

Fix race condition when emitting implicitly dependent entries #5220

Merged
merged 4 commits into from Oct 28, 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

When working on async parsing, I found that there is a race condition where when a file is emitted both as an actual entry and an implicitly dependent entry, then it could be that it would still be emitted only as an implicitly dependent entry and not as an independent entry.

@vercel
Copy link

vercel bot commented Oct 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 Oct 21, 2023 6:12pm

@github-actions
Copy link

github-actions bot commented Oct 21, 2023

Thank you for your contribution! ❤️

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

npm install rollup/rollup#implicit-dependent-entries

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-2j0nx7nse-rollup-js.vercel.app/repl/?pr=5220

@codecov
Copy link

codecov bot commented Oct 21, 2023

Codecov Report

Merging #5220 (2e8a8a7) into master (de1c7b6) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #5220   +/-   ##
=======================================
  Coverage   98.82%   98.82%           
=======================================
  Files         231      231           
  Lines        8849     8850    +1     
  Branches     2314     2315    +1     
=======================================
+ Hits         8745     8746    +1     
  Misses         43       43           
  Partials       61       61           
Files Coverage Δ
src/ModuleLoader.ts 99.59% <100.00%> (+<0.01%) ⬆️

@lukastaegert lukastaegert merged commit 8105137 into master Oct 28, 2023
27 checks passed
@lukastaegert lukastaegert deleted the implicit-dependent-entries branch October 28, 2023 04:46
@github-actions
Copy link

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

None yet

1 participant