Configuration
@react-trace/kit props
When using the batteries-included @react-trace/kit, the default export accepts these props:
Editor presets
EditorPreset supports these values:
vscodecursorwindsurfwebstormintellij
Example
@react-trace/core props
When using @react-trace/core directly, the Trace component accepts:
Example
The root prop
The root prop tells the inspector the absolute path to your project so it can:
- Resolve source-map locations to real file paths
- Display project-relative paths in the UI
- Enable plugins to read and write files
For Vite projects, the standard approach is exporting VITE_ROOT=$(pwd) in your dev script and passing import.meta.env.VITE_ROOT as the prop value.