Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
Not sure why this is an issue now that I removed one plugin
  • Loading branch information
airjp73 committed Jun 14, 2024
1 parent 9ad8f74 commit fdeac72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/docs-v2/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
},
{
Expand All @@ -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 {
Expand Down

0 comments on commit fdeac72

Please sign in to comment.