@tanstack/router-plugin
Version:
Modern and scalable routing for React applications
13 lines (12 loc) • 652 B
TypeScript
import { default as babel } from '@babel/core';
import * as t from '@babel/types';
export declare const debug: boolean | "" | undefined;
/**
* Normalizes a file path by converting Windows backslashes to forward slashes.
* This ensures consistent path handling across different bundlers and operating systems.
*
* The route generator stores paths with forward slashes, but rspack/webpack on Windows
* pass native paths with backslashes to transform handlers.
*/
export declare function normalizePath(path: string): string;
export declare function getUniqueProgramIdentifier(programPath: babel.NodePath<t.Program>, baseName: string): t.Identifier;