vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
16 lines • 726 B
TypeScript
import type { InputNormalizer } from "../types.js";
type CreateInputNormalizerProps = {
root: string;
preserveModulesRoot?: string | undefined;
removeExtension?: boolean | RegExp | string | ((path: string) => boolean);
};
/**
* @description Create a function that normalizes the input
* @param root - The root of the project
* @param preserveModulesRoot - The root of the preserve modules
* @param removeExtension - Whether to remove the extension of the file
* @returns A function that normalizes the input
*/
export declare function createInputNormalizer({ root, preserveModulesRoot, removeExtension, }: CreateInputNormalizerProps): InputNormalizer;
export {};
//# sourceMappingURL=inputNormalizer.d.ts.map