ReactTracer Babel Plugin Settings
Package: @autotracer/plugin-babel-react18 · Layer: Build · Type: Overview
Use this page for the build-time settings passed to @autotracer/plugin-babel-react18 in your Babel config.
This layer controls build-time component injection, automatic hook labeling, React Server Components safety checks, and optional output-mode startup seeding. It does not replace the runtime reactTracer() initializer in @autotracer/react18, and it does not mount the Dashboard for you. Theme customization stays on the runtime side through colors. File-based theme loading is available only on the Vite plugin path through ReactTracer Theme API.
Recommended Setup
Use @autotracer/plugin-babel-react18 for build-time injection only in local development or restricted internal builds, and initialize reactTracer() before your client entry renders only in those same builds.
In restricted internal browser builds, mount @autotracer/dashboard yourself when you want the standard browser control workflow. When the Dashboard is not mounted, use the lower-level runtime control surface on globalThis.autoTracer.
Settings By Concern
- Startup and browser control:
outputMode - Eligibility and labeling:
mode, pragma comments,include,exclude,labelHooks,labelHooksPattern, andprefix - Framework and build wiring:
serverComponentsandimportSource
Adjacent Docs
- @autotracer/plugin-babel-react18 for package usage and current option coverage
- Installation - ReactTracer with Next.js Pages Router for the Pages Router entry path
- Installation - ReactTracer with Next.js App Router for the App Router entry path
- ReactTracer Installation - Create React App for the Create React App entry path
- ReactTracer Configuration for the recommended runtime and build-time split
- ReactTracer Runtime Settings for
reactTracer()option behavior - @autotracer/react18 for runtime APIs and the lower-level
globalThis.autoTracercontrol surface
Pragmas
Use line comments to control component-level injection.
// @traceenables one eligible component.// @trace-disabledisables one eligible component.includeandexcludedecide the eligible set before pragma signals are applied.
For exact placement rules, precedence, and examples, see Pragma Comments.