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(node-resolve): handle nested entry modules with the resolveOnly option #430

Merged
merged 1 commit into from
Jun 1, 2020

Conversation

lukastaegert
Copy link
Member

Rollup Plugin Name: node-resolve

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

If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers:
resolves rollup/rollup#3610

Description

When a nested entry, e.g. lib/main.js, is used with the resolveOnly option, it assumes it is a sub-path of the lib package and marks the entry as external. This is fixed here by checking if the actual importee is an entry.

@shellscape shellscape merged commit 7c38cb2 into master Jun 1, 2020
@shellscape shellscape deleted the fix-resolveonly-nested branch June 1, 2020 14:10
LarsDenBakker pushed a commit to LarsDenBakker/plugins that referenced this pull request Sep 12, 2020
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.

Suspect regression in upgrade from 2.10.9 to 2.11.0
2 participants