Files
wehub-resource-sync da10c3c2c3
Publish Any Commit / build (22) (push) Failing after 1s
Build Extension / build (push) Failing after 1s
chore: import upstream snapshot with attribution
2026-07-13 12:20:35 +08:00

1.5 KiB

React Scanner Extension

Browser extension for scanning React applications and identifying performance issues.

Environment Variables

When developing with Brave, you need to set the BRAVE_BINARY environment variable. Create a .env file (copy from .env.example):

# For macOS
BRAVE_BINARY="/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"

# For Windows
BRAVE_BINARY="C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"

# For Linux
BRAVE_BINARY="/usr/bin/brave"

Development Setup

For Chrome

  1. Run development server:
    pnpm dev
    
  2. This will automatically open Chrome with the extension loaded.

If you need to inspect the extension, open chrome://extensions in Chrome

For Firefox


For Firefox

  1. Run development server:
    pnpm dev:firefox
    
  2. This will automatically open Firefox with the extension loaded.

If you need to inspect the extension, open about:debugging#/runtime/this-firefox in Firefox


For Brave

  1. Run development server:

    pnpm dev:brave
    
  2. This will automatically open Brave with the extension loaded.

If you need to inspect the extension, open brave://extensions in Brave


Building for Production

To build the extension for all browsers:

pnpm pack:all

This will create:

  • chrome-extension-v1.0.8.zip
  • firefox-extension-v1.0.8.zip
  • brave-extension-v1.0.8.zip

in the build directory.