Skip to content

fix(node-resolve): handle nested entry modules with the resolveOnly option#430

Merged
shellscape merged 1 commit intomasterfrom
fix-resolveonly-nested
Jun 1, 2020
Merged

fix(node-resolve): handle nested entry modules with the resolveOnly option#430
shellscape merged 1 commit intomasterfrom
fix-resolveonly-nested

Conversation

@lukastaegert
Copy link
Copy Markdown
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