Documentation
    Preparing search index...

    Function getLibEntryFromExports

    • Derives vite build.lib.entry from the exports and bin fields of the nearest package.json. Code exports are identified by their types condition pointing at a source file (e.g. "./src/index.ts"), and bin entries are read from publishConfig.bin (which points at "./dist/bin/…" and is mapped back to the corresponding source file).

      Falls back to DEFAULT_ENTRY when no code entries can be derived.

      Parameters

      • Optionaloptions: { cwd?: string }

      Returns Record<string, string>