Skip to content

Commit

Permalink
fix: micromatch import
Browse files Browse the repository at this point in the history
close #2
  • Loading branch information
skarab42 committed Jul 18, 2022
1 parent 97dc1cf commit 409bcc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugin/util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isMatch } from 'micromatch';
import micromatch from 'micromatch';
import type { IncludeExclude } from './types';

const fileNameMatchCache = new Map<string, boolean>();
Expand All @@ -10,7 +10,7 @@ export function fileNameMatch(fileName: string, options: IncludeExclude): boolea

const { include, exclude } = options;

if (!isMatch(fileName, include) || isMatch(fileName, exclude)) {
if (!micromatch.isMatch(fileName, include) || micromatch.isMatch(fileName, exclude)) {
fileNameMatchCache.set(fileName, false);

return false;
Expand Down

0 comments on commit 409bcc0

Please sign in to comment.