mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 23:49:51 +00:00
MDX: Add vite/client types in generated file
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-mdx': patch
|
||||
---
|
||||
|
||||
Add `vite/client` types in generated file
|
||||
@@ -179,6 +179,7 @@ export default function mdx(
|
||||
const outdir = process.cwd();
|
||||
const outFile = 'source.generated.ts';
|
||||
const lines = [
|
||||
'/// <reference types="vite/client" />',
|
||||
`import { fromConfig } from 'fumadocs-mdx/runtime/vite';`,
|
||||
`import type * as Config from '${toImportPath(configPath, {
|
||||
relativeTo: outdir,
|
||||
|
||||
Reference in New Issue
Block a user