Skip to content

Conversation

GauBen
Copy link

@GauBen GauBen commented Jul 4, 2025

Rollup Plugin Name: multi-entry

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 #1862

Description

The plugin now adds folders (using the best heuristic as possible) to Rollup watch list.

For instance, if input is src/**/*.js, the src directory is watched, in its entirety.

Other than that, I have rewritten the plugin as TypeScript, cause why not, and used tinyglobby to address many deprecation issues

@GauBen GauBen requested a review from shellscape as a code owner July 4, 2025 15:23
* By default no files are ignored.
*/
exclude?: FilterPattern;
exclude?: string | string[];
Copy link
Author

@GauBen GauBen Jul 4, 2025

Choose a reason for hiding this comment

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

This is not a breaking change, providing a regex would cause an undefined behavior at this line:

const patterns = config.include.concat(config.exclude.map((pattern) => `!${pattern}`));

@shellscape
Copy link
Collaborator

Looks like a CI error that's outside of the scope of your PR. Will take a look at this soon.

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.

[multi-entry] Watch files matched by the glob pattern
2 participants