Skip to content
프로젝트

blazejkustra/react-compiler-marker

GitHub에서 보기

소개

React Compiler가 최적화한 React 컴포넌트를 표시하는 범용 IDE 확장 프로그램 ✨

웹 및 앱 개발

이 수치를 측정하는 방법

What you can do

  • Visual emoji markers next to React components (customizable)
  • Respects the "use no memo" / "use no forget" opt-out directive — opted-out functions are reported as skipped (⏭️) rather than failed
  • Hover tooltips with optimization details and error messages
  • Preview compiled output to see what the React Compiler generates

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

React Compiler Marker

Universal IDE extension that shows which React components are optimized by the React Compiler. See at a glance which components get automatically memoized ✨ and which ones have issues preventing optimization 🚫

Showcase

Features

  • Visual emoji markers next to React components (customizable)
  • Respects the "use no memo" / "use no forget" opt-out directive — opted-out functions are reported as skipped (⏭️) rather than failed
  • Hover tooltips with optimization details and error messages
  • Preview compiled output to see what the React Compiler generates
  • Generate reports for a full-project compilation snapshot
  • Commands to activate/deactivate markers or check individual files
  • Configurable babel plugin path for custom setups
  • Configurable compilationMode (infer, annotation, syntax, all) to match your project's React Compiler setup

Supported IDEs

IDE Installation
VS Code / Cursor / Antigravity VS Code Marketplace | Open VSX
WebStorm / IntelliJ IDEA IntelliJ marketplace
Neovim Setup instructions
Zed (alpha) Setup instructions

Project Structure

This is a monorepo containing:

packages/
  cli/              # CLI for generating reports
  server/           # LSP server (shared by all clients)
  vscode-client/    # VS Code extension
  intellij-client/  # WebStorm/IntelliJ plugin
  nvim-client/      # Neovim plugin
  zed-client/       # Zed extension

Each client has its own version and release cycle. See individual READMEs for client-specific documentation:

Quick Start

CLI

npx react-compiler-marker

Generate a full-project report from the command line. Supports text, HTML, and JSON output formats.

# Text summary (default)
npx react-compiler-marker .

# Interactive HTML report
npx react-compiler-marker --format html .

# JSON for CI pipelines
npx react-compiler-marker --format json . > report.json

See the CLI README for all options.

VS Code / Cursor / Antigravity

  1. Install from VS Code Marketplace or search "React Compiler Marker" in Extensions
  2. Open a React component file - markers appear automatically

WebStorm / IntelliJ IDEA

  1. Build the plugin: cd packages/intellij-client && ./gradlew buildPlugin
  2. Install from disk: Settings > Plugins > Install Plugin from Disk
  3. Select build/distributions/react-compiler-marker-*.zip

Neovim

Using lazy.nvim:

{
  'blazejkustra/react-compiler-marker',
  ft = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact' },
  build = './scripts/build-nvim.sh',
  opts = {},
}

Open a React component file - markers appear automatically.

Requirements: Neovim 0.9+ (0.10+ recommended for native inlay hints), Node.js, babel-plugin-react-compiler in your project.

See the Neovim Client README for configuration options and other package managers.

Zed

Note: The Zed extension is not yet available in the Zed extension registry. For now, you need to download and install it manually.

See the Zed Client README for installation and configuration options.

Links

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT

관련 프로젝트 살펴보기

불러오는 중…