Skip to content

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.

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

Adjacent Docs

Pragmas

Use line comments to control component-level injection.

  • // @trace enables one eligible component.
  • // @trace-disable disables one eligible component.
  • include and exclude decide the eligible set before pragma signals are applied.

For exact placement rules, precedence, and examples, see Pragma Comments.

Released under the MIT License.