-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RC 0.1.2] - cleanup, improvements, Re-renders History, Components Tr…
…ee and more (#195) fix: cleanup + biiome - 0 errors, 0 warnings feat: custom postcss plugin rem2px to prevent target page styles to brake ours feat: Re-renders History feat: Components Tree feat: Search feat: Breadcrumb feat: Resizing + preserve dimentions improve: extension now work with new outlines improve: inspector UI animations and components improve: getOverrideMethods improve: chain updates through all renderers to ensure consistency across different React renderers (e.g., React DOM + React Native Web in the same app) improve: overrideContext: using overrideProps internally to update the context provider's value prop
- Loading branch information
Showing
88 changed files
with
5,435 additions
and
3,148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import { build } from 'vite'; | ||
|
||
const __dirname = path.dirname(fileURLToPath(import.meta.url)); | ||
|
||
async function buildWorker() { | ||
try { | ||
const entryPath = path.resolve( | ||
__dirname, | ||
'../../packages/scan/src/new-outlines/offscreen-canvas.worker.ts', | ||
); | ||
const outputPath = path.resolve(__dirname, 'dist/assets'); | ||
|
||
// biome-ignore lint/suspicious/noConsole: Intended debug output | ||
console.log('Building worker with entry:', entryPath); | ||
// biome-ignore lint/suspicious/noConsole: Intended debug output | ||
console.log('Output directory:', outputPath); | ||
|
||
await build({ | ||
build: { | ||
lib: { | ||
entry: entryPath, | ||
formats: ['iife'], | ||
fileName: () => 'offscreen-canvas.worker.js', | ||
name: 'OffscreenCanvasWorker', | ||
}, | ||
outDir: outputPath, | ||
emptyOutDir: false, | ||
copyPublicDir: false, | ||
assetsDir: 'assets', | ||
}, | ||
}); | ||
|
||
// biome-ignore lint/suspicious/noConsole: Intended debug output | ||
console.log('Worker build completed successfully!'); | ||
} catch (error) { | ||
// biome-ignore lint/suspicious/noConsole: Intended debug output | ||
console.error('Worker build failed:', error); | ||
process.exit(1); | ||
} | ||
} | ||
|
||
buildWorker(); |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
import * as reactScan from 'react-scan'; | ||
import { installRDTHook } from 'bippy'; | ||
import { canLoadReactScan, saveLocalStorage } from '../utils/helpers'; | ||
|
||
saveLocalStorage('useExtensionWorker', true); | ||
window.reactScan = reactScan.setOptions; | ||
globalThis._reactScan = reactScan; | ||
saveLocalStorage('use-extension-worker', true); | ||
|
||
if (canLoadReactScan) { | ||
reactScan.scan({ | ||
enabled: true, | ||
showToolbar: false, | ||
}); | ||
installRDTHook(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"manifest_version": 3, | ||
"name": "React Scan", | ||
"version": "1.0.0", | ||
"description": "Scan React apps for performance problems", | ||
"icons": { | ||
"16": "icon/16.png", | ||
"32": "icon/32.png", | ||
"48": "icon/48.png", | ||
"96": "icon/96.png", | ||
"128": "icon/128.png" | ||
}, | ||
"action": { | ||
"default_icon": { | ||
"16": "icon/16.png", | ||
"32": "icon/32.png", | ||
"48": "icon/48.png", | ||
"96": "icon/96.png", | ||
"128": "icon/128.png" | ||
} | ||
}, | ||
"background": { | ||
"service_worker": "src/background/index.ts" | ||
}, | ||
"permissions": [ | ||
"activeTab", | ||
"tabs", | ||
"scripting", | ||
"storage", | ||
"declarativeNetRequest" | ||
], | ||
"host_permissions": ["<all_urls>"], | ||
"content_scripts": [ | ||
{ | ||
"matches": ["<all_urls>"], | ||
"js": ["src/inject/react-scan.ts"], | ||
"run_at": "document_start", | ||
"world": "MAIN" | ||
}, | ||
{ | ||
"matches": ["<all_urls>"], | ||
"js": ["src/inject/index.ts"], | ||
"run_at": "document_start", | ||
"world": "MAIN" | ||
}, | ||
{ | ||
"matches": ["<all_urls>"], | ||
"js": ["src/content/index.ts"], | ||
"run_at": "document_start" | ||
} | ||
], | ||
"web_accessible_resources": [ | ||
{ | ||
"resources": ["icon/*", "workers/*"], | ||
"matches": ["<all_urls>"] | ||
} | ||
] | ||
} |
Oops, something went wrong.