Skip to content

Interface: SourceLocatorViteOptions

Defined in: source-locator.ts:427

Options for the standalone Vite plugin.

Extends

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).

Inherited from

SourceLocatorOptions.factories


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.

Inherited from

SourceLocatorOptions.locPrefix


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).

Inherited from

SourceLocatorOptions.root


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.

Inherited from

SourceLocatorOptions.stampJsx