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,