fix(esbuild): correct exclude pattern logic in csvLoader

This commit is contained in:
2026-08-06 10:52:01 +08:00
parent 6da2815301
commit 1a741b09a8
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ export function csvLoader(options: CsvEsbuildOptions = {}): Plugin {
setup(build) { setup(build) {
build.onLoad({ filter: includeFilter }, async (args) => { build.onLoad({ filter: includeFilter }, async (args) => {
// Check exclude pattern // Check exclude pattern
if (exclude && !matchesPattern(args.path, exclude)) { if (exclude && matchesPattern(args.path, exclude)) {
return null; return null;
} }
-1
View File
@@ -18,7 +18,6 @@ import type {
ReverseReferenceDeclaration, ReverseReferenceDeclaration,
TypeDeclaration, TypeDeclaration,
} from "./types.js"; } from "./types.js";
import { ParseError } from "../parser.js";
import { import {
hasNestedReferences, hasNestedReferences,
loadReferenceTable, loadReferenceTable,