vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
8 lines • 403 B
TypeScript
/**
* Builds a regex matching `node_modules/<pkg>/...` paths for any package in
* the given list. Returns `null` for an empty list (caller should treat as
* "no whitelist active") so we don't have to special-case `/(?:)/.test(id)`
* which matches every string.
*/
export declare const buildClientPackagesPattern: (packages: readonly string[]) => RegExp | null;
//# sourceMappingURL=pattern.d.ts.map