OptionalentryLibrary entrypoints.
Defaults to the entries derived from the nearest package.json exports
via getLibEntryFromExports.
OptionalformatsOutput formats for the library build.
Defaults to DEFAULT_EXPORT_FORMATS (['es', 'cjs']). Pass
['es'] for an ESM-only library, for example when the entrypoints use
top-level await, which is invalid in a CommonJS bundle.
Options for defineViteLibConfig.