Files
5chan/src/lib/react-scan.ts
T

11 lines
287 B
TypeScript
Raw Normal View History

if (import.meta.env.DEV) {
const { scan, getReport } = await import('react-scan');
scan({
enabled: true,
showToolbar: !(window as any).__PROFILING__,
playSound: !(window as any).__PROFILING__,
report: true,
});
(window as any).__getReactScanReport = getReport;
}