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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user