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

@rollup/pluginutils include match behavior is strange. #878

Closed
underfin opened this issue May 9, 2021 · 1 comment
Closed

@rollup/pluginutils include match behavior is strange. #878

underfin opened this issue May 9, 2021 · 1 comment

Comments

@underfin
Copy link

underfin commented May 9, 2021

  • Rollup Plugin Name:
  • Rollup Plugin Version:
  • Rollup Version:
  • Operating System (or Browser):
  • Node Version:
  • Link to reproduction (⚠️ read below):

Expected Behavior

var pluginutils = require('@rollup/pluginutils');
var include = '/a/b/**'
var filter = pluginutils.createFilter(include, null)
var id = '/a/b/a.js'
console.log(filter(id)) // expected true

var minimatch = require("minimatch")
console.log(minimatch(id, include) )// true!

Actual Behavior

var pluginutils = require('@rollup/pluginutils');
var include = '/a/b/**'
var filter = pluginutils.createFilter(include, null)
var id = '/a/b/a.js'
console.log(filter(id)) // false

var minimatch = require("minimatch")
console.log(minimatch(id, include) )// true!

Additional Information

Related issues: #490

@stale
Copy link

stale bot commented Jul 9, 2021

Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it.

@stale stale bot closed this as completed Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant