@karmaniverous/get-dotenv
    Preparing search index...

    Function loadModuleDefault

    • Load a module default export from a JS/TS file with robust fallbacks:

      • .js/.mjs/.cjs: direct import * - .ts/.mts/.cts/.tsx:
        1. try direct import (if a TS loader is active),
        2. esbuild bundle to a temp ESM file,
        3. typescript.transpileModule fallback for simple modules.

      Type Parameters

      • T

      Parameters

      • absPath: string

        absolute path to source file

      • cacheDirName: string

        cache subfolder under .tsbuild

      Returns Promise<undefined | T>