diff --git a/bun.lock b/bun.lock index 60e9df304..6e797743b 100644 --- a/bun.lock +++ b/bun.lock @@ -74,6 +74,7 @@ "bun-types": "^1.1.20", "classnames": "^2.5.1", "framer-motion": "^10.16.14", + "holy-loader": "^2.3.13", "js-cookie": "^3.0.5", "jsontoxml": "^1.0.1", "jwt-decode": "^4.0.0", @@ -1957,6 +1958,8 @@ "highlightjs-vue": ["highlightjs-vue@1.0.0", "", {}, "sha512-PDEfEF102G23vHmPhLyPboFCD+BkMGu+GuJe2d9/eH4FsCwvgBpnc9n0pGE+ffKdph38s6foEZiEjdgHdzp+IA=="], + "holy-loader": ["holy-loader@2.3.13", "", { "peerDependencies": { "react": ">= 16.0.0" } }, "sha512-SnQ06sfMgbhiRGkHZ0RFMbexSpZN3i6tgItt3q8GWNba3mOdsq1RNJXkoqsWkqPIAmyroj2/xIOHu1hCFnjkBQ=="], + "hookable": ["hookable@5.5.3", "", {}, "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ=="], "hookified": ["hookified@1.8.1", "", {}, "sha512-GrO2l93P8xCWBSTBX9l2BxI78VU/MAAYag+pG8curS3aBGy0++ZlxrQ7PdUOUVMbn5BwkGb6+eRrnf43ipnFEA=="], diff --git a/packages/gitbook/package.json b/packages/gitbook/package.json index f24429130..cb2fefae6 100644 --- a/packages/gitbook/package.json +++ b/packages/gitbook/package.json @@ -39,6 +39,7 @@ "bun-types": "^1.1.20", "classnames": "^2.5.1", "framer-motion": "^10.16.14", + "holy-loader": "^2.3.13", "js-cookie": "^3.0.5", "jsontoxml": "^1.0.1", "jwt-decode": "^4.0.0", diff --git a/packages/gitbook/src/components/RootLayout/CustomizationRootLayout.tsx b/packages/gitbook/src/components/RootLayout/CustomizationRootLayout.tsx index afa8e9960..14ebe817f 100644 --- a/packages/gitbook/src/components/RootLayout/CustomizationRootLayout.tsx +++ b/packages/gitbook/src/components/RootLayout/CustomizationRootLayout.tsx @@ -21,6 +21,7 @@ import { hexToRgb, } from '@gitbook/colors'; import { IconStyle, IconsProvider } from '@gitbook/icons'; +import HolyLoader from 'holy-loader'; import * as ReactDOM from 'react-dom'; import { getFontData } from '@/fonts'; @@ -28,7 +29,6 @@ import { fontNotoColorEmoji, ibmPlexMono } from '@/fonts/default'; import { getSpaceLanguage } from '@/intl/server'; import { getAssetURL } from '@/lib/assets'; import { tcls } from '@/lib/tailwind'; - import { ClientContexts } from './ClientContexts'; import '@gitbook/icons/style.css'; @@ -151,6 +151,7 @@ export async function CustomizationRootLayout(props: { } `} +