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
- Run development server:
pnpm dev - 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
- Run development server:
pnpm dev:firefox - 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
-
Run development server:
pnpm dev:brave -
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.zipfirefox-extension-v1.0.8.zipbrave-extension-v1.0.8.zip
in the build directory.