Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

loadConfigFile.ts

10 lines255 Bytes

1import { createJiti } from 'jiti'
2​
3export async function loadConfigFile(filePath: string) {
4 const jiti = createJiti(filePath, {
5 interopDefault: false,
6 tsconfigPaths: true,
7 })
8 const loaded = await jiti.import<any>(filePath)
9 return loaded