You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

react-compiler-marker

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-compiler-marker

CLI for generating React Compiler reports

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

react-compiler-marker

CLI for generating React Compiler reports. Scan your project to see which components are optimized by the React Compiler and which have issues.

Usage

npx react-compiler-marker [options] [directory]

Requirements: babel-plugin-react-compiler must be installed in your project.

Examples

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

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

# HTML report saved to file
npx react-compiler-marker --format html --output report.html .

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

# Custom extensions and excludes
npx react-compiler-marker --include-extensions .tsx,.ts --exclude-dirs node_modules,dist .

Options

OptionDescriptionDefault
--format <format>Output format: text, html, jsontext
--output <path>Write output to a file instead of stdoutstdout
--exclude-dirs <dirs>Comma-separated directories to excludenode_modules,.git,dist,build,out,coverage,.next,.turbo
--include-extensions <exts>Comma-separated file extensions to include.js,.jsx,.ts,.tsx,.mjs,.cjs
--babel-plugin-path <path>Path to babel-plugin-react-compilerAuto-detected from node_modules
--helpShow help message
--versionShow version number

Output Formats

Text (default)

React Compiler Report
========================================
Files scanned:      120
Files with results: 85
Compiled (success): 200
Failed:             12

Failures:
----------------------------------------
  src/components/Foo.tsx:42 - MyComponent: (BuildHIR::lowerStatement) Handle TryStatement
  src/screens/Bar.tsx:15 - (anonymous): Mutating a variable after render

HTML

Self-contained interactive report with filtering, search, and a tree view. When no --output is specified, opens automatically in your browser.

JSON

Full report data for programmatic use and CI integration.

CI Usage

The CLI exits with code 1 if any compilation failures exist, making it useful in CI pipelines:

npx react-compiler-marker --format json --output report.json . || echo "Compilation failures found"

License

MIT

FAQs

Package last updated on 15 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts