From 664ff9bc14e2da3c44b7cf5f11c780223c25ce53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Mon, 18 Dec 2023 18:00:45 +0300 Subject: [PATCH] fix(website): use prism-react-renderer v2 with docusaurus https://github.com/facebook/docusaurus/issues/8940 --- website/docusaurus.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index cfd803ae08..49b05b75f5 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -1,8 +1,8 @@ // @ts-check // Note: type annotations allow type checking and IDEs autocompletion -const lightCodeTheme = require("prism-react-renderer/themes/github"); -const darkCodeTheme = require("prism-react-renderer/themes/vsDark"); +const lightCodeTheme = require("prism-react-renderer").themes.github; +const darkCodeTheme = require("prism-react-renderer").themes.vsDark; /** @type {import('@docusaurus/types').Config} */ const config = {