Config: catalogMatchesSource
Functions, types, and exports for Config: catalogMatchesSource.
Page outline
Whether a source file belongs to a configured catalog.
This is shared by the Vite and Next integrations. Dot-prefixed source path segments intentionally match, matching Vite's historic filter behavior.
import { catalogMatchesSource } from "@palamedes/config"
catalogMatchesSource(config: Pick<LoadedPalamedesConfig, "rootDir">, catalog: PalamedesCatalogConfig, sourcePath: string): boolean
Parameters
| Name | Type | Required |
|---|---|---|
config | Pick<LoadedPalamedesConfig, "rootDir"> | Yes |
catalog | PalamedesCatalogConfig | Yes |
sourcePath | string | Yes |
Returns
boolean
Last updated: November 1, 2026