Skip to content

fix(pluginutils): add current working dirctory when pattern starts with one * - #1547

Merged
shellscape merged 1 commit into
rollup:masterfrom
TrickyPi:fix-1538
Aug 13, 2023
Merged

fix(pluginutils): add current working dirctory when pattern starts with one *#1547
shellscape merged 1 commit into
rollup:masterfrom
TrickyPi:fix-1538

Conversation

@TrickyPi

@TrickyPi TrickyPi commented Jul 28, 2023

Copy link
Copy Markdown
Member

Rollup Plugin Name: pluginutils

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:
relevant: #1538

Description

Currently, if we use a format like *.js in the include option of @rollup/plugins, the plugin cannot filter files correctly, I created a minimal reprodution https://stackblitz.com/edit/rollup-repro-dnz5kc?file=rollup.config.js. This PR addresses this problem with the solution described in issue #1538.

@TrickyPi
TrickyPi requested a review from shellscape as a code owner July 28, 2023 14:59

@lukastaegert lukastaegert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, thanks for your effort!

@shellscape

Copy link
Copy Markdown
Collaborator

@lukastaegert thoughts on this being a breaking change? result sets will now include more than was there before. could result in unexpected behavior.

@lukastaegert

Copy link
Copy Markdown
Member

I would tend to say that the previous behavior was a bug and very unlikely to be used by anyone, and thus it should not be a new major version.

@shellscape

Copy link
Copy Markdown
Collaborator

OK cool. we'll put it through as a patch

@shellscape
shellscape merged commit 89ceb2a into rollup:master Aug 13, 2023
@TrickyPi
TrickyPi deleted the fix-1538 branch August 14, 2023 06:50
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.

3 participants