Skip to content

Commit bf37e83

Browse files
committed
chore: move react-scan to web-app
1 parent 60a9564 commit bf37e83

3 files changed

Lines changed: 12 additions & 17 deletions

File tree

packages/raga-app/src/renderer.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,4 @@
2525
* });
2626
* ```
2727
*/
28-
29-
/* eslint-disable simple-import-sort/imports */
30-
31-
import "../../raga-web-app/src/index.scss";
32-
33-
import { scan } from "react-scan"; // import this BEFORE react
34-
import "react";
35-
36-
if (typeof window !== "undefined" && process.env.NODE_ENV === "development") {
37-
scan({
38-
enabled: true,
39-
// log: true, // logs render info to console (default: false)
40-
});
41-
}
42-
4328
import "../../raga-web-app/src/main";
44-
45-
/* eslint-enable simple-import-sort/imports */

packages/raga-web-app/src/main.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import "./setupReactScan"; // Initialize react-scan
12
import "./webApi"; // Initialize the web API
23

34
import { createLogWriter } from "@roarr/browser-log-writer";
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* eslint-disable simple-import-sort/imports */
2+
import { scan } from "react-scan"; // import this BEFORE react
3+
import "react";
4+
5+
if (typeof window !== "undefined" && process.env.NODE_ENV === "development") {
6+
scan({
7+
enabled: true,
8+
// log: true, // logs render info to console (default: false)
9+
});
10+
}
11+
/* eslint-enable simple-import-sort/imports */

0 commit comments

Comments
 (0)