From fdeac72133c5eacf6b8e19498b0ba03c42791439 Mon Sep 17 00:00:00 2001 From: Aaron Pettengill Date: Fri, 14 Jun 2024 16:34:25 -0400 Subject: [PATCH] fix: type error Not sure why this is an issue now that I removed one plugin --- apps/docs-v2/vite.config.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/docs-v2/vite.config.ts b/apps/docs-v2/vite.config.ts index b07ecf1e..e4798651 100644 --- a/apps/docs-v2/vite.config.ts +++ b/apps/docs-v2/vite.config.ts @@ -14,10 +14,10 @@ export default defineConfig({ enforce: "pre", ...mdx({ providerImportSource: path.resolve( - path.join(__dirname, "./app/ui/mdx/mdx-components.tsx") + path.join(__dirname, "./app/ui/mdx/mdx-components.tsx"), ), remarkPlugins, - rehypePlugins, + rehypePlugins: rehypePlugins as any, }), }, { @@ -26,10 +26,10 @@ export default defineConfig({ async transform(src, id) { if (id.endsWith("?code")) { const code = await compile(["```tsx", src.trim(), "```"].join("\n"), { - rehypePlugins, + rehypePlugins: rehypePlugins as any, remarkPlugins, providerImportSource: path.resolve( - path.join(__dirname, "./app/ui/mdx/code-components.tsx") + path.join(__dirname, "./app/ui/mdx/code-components.tsx"), ), }); return {