react-compiler-marker
is a VSCode/Cursor extension that shows which React components are optimized by the React Compiler
- ✨ = optimized
- 🚫 = failed (with tooltip explaining why)
- Markers for optimized and failed components ✨/🚫
- Hover tooltips with details
- Commands to enable/disable markers or check a single file
- Preview Compiled Output: Preview the compiled output of the current file
✨ Optimized component
🚫 Failed component
Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and type:
- Activate Decorations: Activates the markers for all relevant files in the current session.
React Compiler Marker: Activate Extension
- Deactivate Decorations: Deactivates the markers and clears them from the editor.
React Compiler Marker: Deactivate Extension
- Check Once (File-Specific Check): Analyzes a single file for one-time feedback without altering activation state.
React Compiler Marker: Check Once
- Preview Compiled Output: Preview the compiled output of the current file
React Compiler Marker: Preview Compiled Output
This extension does not require external setup or dependencies. However, to fully utilize React Compiler insights, ensure your project:
- Includes React codebases.
- Uses standard JavaScript, TypeScript, or
jsx
/tsx
file formats. - Has React Compiler installed
- Some rare edge cases of anonymous functions could fail to properly display tooltips.
- For files with a large number of React components, performance may degrade slightly during real-time updates.
- Learn about React Compiler and how it can improve your React app's performance.
- Submit issues or contribute via the GitHub Repository.
Enjoy Coding with React Compiler Marker ✨!