Skip to content

Variable: SOURCE_CONDITION

Documentation / @wtf/project-resolve / condition / SOURCE_CONDITION

const SOURCE_CONDITION: "@wtf/source" = '@wtf/source';

Defined in: packages/project-resolve/src/condition.ts:21

The export condition of a package’s TypeScript source, @wtf/source: in an export map, the entry before types and default, as "@wtf/source": "./src/index.ts". A workspace resolves a package by it to its source, with nothing built, and a consumer never sees it: strip it when you publish.