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

    Function loadAndApplyDynamic

    • Load a default-export dynamic map from a JS/TS file and apply it. Uses util/loadModuleDefault for robust TS handling (direct import, esbuild, typescript.transpile fallback).

      Error behavior:

      • On failure to load/compile/evaluate the module, throws a unified message: "Unable to load dynamic TypeScript file: . Install 'esbuild'..."

      Parameters

      • target: ProcessEnv

        Mutable target environment to assign into.

      • absPath: string

        Absolute path to the dynamic module file.

      • env: string | undefined

        Selected environment name (if any).

      • cacheDirName: string

        Cache subdirectory under .tsbuild/ for compiled artifacts.

      Returns Promise<void>

      A Promise\<void\> which resolves after the module (if present) has been applied.