Skip to content

Function: sourceLocatorBabel()

sourceLocatorBabel(babel, options?): PluginObj

Defined in: source-locator.ts:241

The babel plugin (both halves). Kept a plain function so it can be dropped into any @babel/core plugins array — the standalone sourceLocatorVite pass, or a consumer's existing babel pass at real-app scale.

Parameters

babel

types

__module

options?

SourceLocatorOptions = {}

Returns

PluginObj