From 87571b3855afc5000c8ef540ea07d6bd4a89a416 Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Thu, 6 Jun 2024 16:35:41 +0700 Subject: [PATCH] Add eruda --- package.json | 1 + src/pages/_app.js | 1 + yarn.lock | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/package.json b/package.json index 8b3dc595b..0e79106c2 100644 --- a/package.json +++ b/package.json @@ -123,6 +123,7 @@ "dayjs": "^1.9.6", "dotenv-webpack": "^1.0.2", "easymde": "^2.15.0", + "eruda": "^3.0.1", "eslint-config-next": "13", "graphql": "^15.5.0", "graphql-request": "^5.2.0", diff --git a/src/pages/_app.js b/src/pages/_app.js index 9d5108710..9895a7360 100644 --- a/src/pages/_app.js +++ b/src/pages/_app.js @@ -55,6 +55,7 @@ function MyApp(props) { if (isInitialized.current) return isInitialized.current = true initAllStores() + import('eruda').then(lib => lib.default.init()) }, []) // Debug store diff --git a/yarn.lock b/yarn.lock index 5b25bb460..e9cd4ef62 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6100,6 +6100,11 @@ error-stack-parser@^2.0.6: dependencies: stackframe "^1.3.4" +eruda@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/eruda/-/eruda-3.0.1.tgz#6c07ae2b3ced54151c6e9b21f9b8da11e6ec988a" + integrity sha512-6q1Xdwga4JTr1mKSW4mzuWSSbmXgqpm/8Wa1QGFGfCWRjC0bCQjbS4u06M1te1moucIS3hBLlbSTPWYH2W0qbQ== + es-abstract@^1.19.0, es-abstract@^1.20.4: version "1.21.2" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.21.2.tgz#a56b9695322c8a185dc25975aa3b8ec31d0e7eff"