Skip to content

Jayllyz/react-compiler-marker

 
 

Repository files navigation

React Compiler Marker ✨

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)

Features 🌟

  • 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

Optimized Marker Screenshot

🚫 Failed component

Failed Marker Screenshot

Available commands 🛠️

Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and type:

  1. Activate Decorations: Activates the markers for all relevant files in the current session.
    React Compiler Marker: Activate Extension
  2. Deactivate Decorations: Deactivates the markers and clears them from the editor.
    React Compiler Marker: Deactivate Extension
  3. Check Once (File-Specific Check): Analyzes a single file for one-time feedback without altering activation state.
    React Compiler Marker: Check Once
  4. Preview Compiled Output: Preview the compiled output of the current file
    React Compiler Marker: Preview Compiled Output

Requirements ⚙️

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

Known Issues 🐛

  • 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.

For More Information 🤝

Enjoy Coding with React Compiler Marker ✨!

About

Highlights React components optimized by the React Compiler in VSCode/Cursor ✨

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 92.0%
  • JavaScript 8.0%