Skip to content

Conversation

jolyndenning
Copy link

@jolyndenning jolyndenning commented Aug 18, 2025

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:

Description

This improves the error message displayed to the user when the entry is "" and the node-resolve plugin is used.

Before this change, the node-resolve plugin throws an error when the entry is "" that is not helpful for the user to understand the problem ( Cannot read properties of undefined (reading \'match\')). Contrastingly, when not using the node-resolve plugin, rollup's error message is helpful: Could not resolve entry module "".

This pull request avoids the node-resolve error so that the clearer error message is displayed to the user.

@shellscape shellscape changed the title Fix error thrown with empty entry while using node-resolve plugin fix(node-resolve): error thrown with empty entry Sep 4, 2025
@shellscape
Copy link
Collaborator

Please run prettier locally. There are issues with the code in the PR.

@jolyndenning
Copy link
Author

formatted the code

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.

2 participants