@tanstack/router-generator
Version:
Modern and scalable routing for React applications
1 lines • 557 B
Source Map (JSON)
{"version":3,"file":"loadConfigFile.cjs","sources":["../../../../src/filesystem/virtual/loadConfigFile.ts"],"sourcesContent":["import { pathToFileURL } from 'node:url'\nimport { tsImport } from 'tsx/esm/api'\n\nexport async function loadConfigFile(filePath: string) {\n const fileURL = pathToFileURL(filePath).href\n const loaded = await tsImport(fileURL, './')\n return loaded\n}\n"],"names":["pathToFileURL","tsImport"],"mappings":";;;;AAGA,eAAsB,eAAe,UAAkB;AAC/C,QAAA,UAAUA,SAAAA,cAAc,QAAQ,EAAE;AACxC,QAAM,SAAS,MAAMC,aAAS,SAAS,IAAI;AACpC,SAAA;AACT;;"}