condition
Documentation / @wtf/project-resolve / condition
SOURCE_CONDITION, the export condition that points at a package’s TypeScript source. The TypeScript configs, the Vite and Vitest configs and the resolve hook all resolve a workspace package by it, so it is defined once, here. It imports nothing, so a config imports it alone.
import { SOURCE_CONDITION } from '@wtf/project-resolve/condition'
const conditions = [SOURCE_CONDITION, 'module', 'browser']