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

10 lines
235 B
TypeScript
Raw Normal View History

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