From 1a741b09a8b5ae56dcc10bf87f01d0d10cc8d41e Mon Sep 17 00:00:00 2001 From: hypercross Date: Thu, 6 Aug 2026 10:52:01 +0800 Subject: [PATCH] fix(esbuild): correct exclude pattern logic in csvLoader --- src/csv-loader/esbuild.ts | 2 +- src/csv-loader/loader.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/csv-loader/esbuild.ts b/src/csv-loader/esbuild.ts index 4b86e0e..3501281 100644 --- a/src/csv-loader/esbuild.ts +++ b/src/csv-loader/esbuild.ts @@ -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; } diff --git a/src/csv-loader/loader.ts b/src/csv-loader/loader.ts index eb4d1ed..efaa91b 100644 --- a/src/csv-loader/loader.ts +++ b/src/csv-loader/loader.ts @@ -18,7 +18,6 @@ import type { ReverseReferenceDeclaration, TypeDeclaration, } from "./types.js"; -import { ParseError } from "../parser.js"; import { hasNestedReferences, loadReferenceTable,