(resolvedPath: string)
| 2402 | } |
| 2403 | |
| 2404 | async function bundleAndLoadConfigFile(resolvedPath: string) { |
| 2405 | const isESM = |
| 2406 | typeof process.versions.deno === 'string' || isFilePathESM(resolvedPath) |
| 2407 | |
| 2408 | const bundled = await bundleConfigFile(resolvedPath, isESM) |
| 2409 | const userConfig = await loadConfigFromBundledFile( |
| 2410 | resolvedPath, |
| 2411 | bundled.code, |
| 2412 | isESM, |
| 2413 | ) |
| 2414 | |
| 2415 | return { |
| 2416 | configExport: userConfig, |
| 2417 | dependencies: bundled.dependencies, |
| 2418 | } |
| 2419 | } |
| 2420 | |
| 2421 | async function bundleConfigFile( |
| 2422 | fileName: string, |
nothing calls this directly
no test coverage detected