Skip to content

GenerateLibraryExportsOptions.sourceCondition?

GenerateLibraryExportsOptions › sourceCondition?

Type: string | undefined

An export condition to put first in every entry, mapping the subpath onto its TypeScript source. Only a repository holding several packages that import each other needs one; nothing outside it sets the condition, and the sources it points at do not ship, so the publish has to strip it again. Omitted, the map has none.