Skip to content

Interface: SourceLocatorOptions

Defined in: source-locator.ts:134

Extended by

Properties

factories?

optional factories?: FactorySpec[]

Defined in: source-locator.ts:155

The factory table. Defaults to defaultFactories; pass [] to disable call-site injection entirely (JSX stamping is independent).


locPrefix?

optional locPrefix?: string

Defined in: source-locator.ts:150

Prefix prepended to every stamped/injected path — for a LIBRARY running this pass in its own build so its published dist carries identity: with root = the package dir and locPrefix: "@you/spectra/", locs read "@you/spectra/src/store.ts:12" — package-qualified, meaningful in any consumer. Apps normally leave this unset.


root?

optional root?: string

Defined in: source-locator.ts:142

Root for relativizing filenames. Files UNDER it stamp as root-relative ("src/model/store.ts:12"); files OUTSIDE it (a workspace-linked package the app consumes source-first) stamp relative-with-dotdots ("../../packages/spectra/src/store.ts:12") — still resolvable against the app root by the attribution consumers. Defaults to "" (absolute paths).


stampJsx?

optional stampJsx?: boolean

Defined in: source-locator.ts:161

Stamp data-source-loc on host JSX elements (default true). The Vite plugin turns this off for production builds — instrumentation is dev-only; identity injection is not.