fix(esbuild): correct exclude pattern logic in csvLoader
This commit is contained in:
@@ -59,7 +59,7 @@ export function csvLoader(options: CsvEsbuildOptions = {}): Plugin {
|
||||
setup(build) {
|
||||
build.onLoad({ filter: includeFilter }, async (args) => {
|
||||
// Check exclude pattern
|
||||
if (exclude && !matchesPattern(args.path, exclude)) {
|
||||
if (exclude && matchesPattern(args.path, exclude)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ import type {
|
||||
ReverseReferenceDeclaration,
|
||||
TypeDeclaration,
|
||||
} from "./types.js";
|
||||
import { ParseError } from "../parser.js";
|
||||
import {
|
||||
hasNestedReferences,
|
||||
loadReferenceTable,
|
||||
|
||||
Reference in New Issue
Block a user