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: use nearest pkg to resolved for moduleSideEffects #12628

Merged

Conversation

patak-dev
Copy link
Member

@patak-dev patak-dev commented Mar 28, 2023

Description

@bluwy checked that this is how it works in rollup. And it is also how it already works inside tryNodeResolve.

close #6740
close #7979


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@stackblitz
Copy link

stackblitz bot commented Mar 28, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@patak-dev patak-dev added the p3-minor-bug An edge case that only affects very specific usage (priority) label Mar 28, 2023
Copy link
Member

@sapphi-red sapphi-red left a comment

Choose a reason for hiding this comment

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

LGTM

I tested with #6740, #7979 and both of them was fixed 🎉

@patak-dev patak-dev merged commit 1dfecc8 into main Mar 28, 2023
@patak-dev patak-dev deleted the fix/use-nearest-pkg-to-resolved-for-moduleSideEffects branch March 28, 2023 13:01
@patak-dev
Copy link
Member Author

Thanks a lot for testing these issues @sapphi-red 💚

@bluwy
Copy link
Member

bluwy commented Mar 28, 2023

A bit late, but it would be nice to add tests for this to prevent future regressions. Thanks for fixing this though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
3 participants