UNPKG

@tanstack/router-generator

Version:

Modern and scalable routing for React applications

9 lines (7 loc) 250 B
import { pathToFileURL } from 'node:url' import { tsImport } from 'tsx/esm/api' export async function loadConfigFile(filePath: string) { const fileURL = pathToFileURL(filePath).href const loaded = await tsImport(fileURL, './') return loaded }