fumadocs-mdx 15.0.2 → 15.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bun/index.d.ts +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/{core-BOs29Mj7.d.ts → core-DAna8bb8.d.ts} +1 -1
- package/dist/dist-DV7kmyst.js +210 -0
- package/dist/index.d.ts +2 -2
- package/dist/next/index.d.ts +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/plugins/index-file.d.ts +1 -1
- package/dist/plugins/json-schema.d.ts +1 -1
- package/dist/plugins/last-modified.d.ts +1 -1
- package/dist/runtime/browser.d.ts +3 -3
- package/dist/runtime/dynamic.d.ts +2 -2
- package/dist/runtime/server.d.ts +1 -1
- package/dist/runtime/types.d.ts +1 -1
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +4 -14
- package/dist/webpack/mdx.d.ts +1 -1
- package/dist/webpack/meta.d.ts +1 -1
- package/package.json +3 -3
- /package/dist/{build-mdx-YyRh-ZGV.d.ts → build-mdx-CAXqH1_C.d.ts} +0 -0
- /package/dist/{index-BIbaPT3v.d.ts → index-Cfo6kcGs.d.ts} +0 -0
- /package/dist/{types-hAduruLB.d.ts → types-DRpz2Vq2.d.ts} +0 -0
package/dist/bun/index.d.ts
CHANGED
package/dist/config/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as DocCollection, B as MDXPresetOptions, D as AnyCollection, E as remarkInclude, F as defineConfig, I as defineDocs, M as GlobalConfig, N as MetaCollection, O as BaseCollection, P as defineCollections, R as PostprocessOptions, T as metaSchema, V as applyMdxPreset, j as DocsCollection, k as CollectionSchema, w as frontmatterSchema, z as DefaultMDXOptions } from "../core-
|
|
1
|
+
import { A as DocCollection, B as MDXPresetOptions, D as AnyCollection, E as remarkInclude, F as defineConfig, I as defineDocs, M as GlobalConfig, N as MetaCollection, O as BaseCollection, P as defineCollections, R as PostprocessOptions, T as metaSchema, V as applyMdxPreset, j as DocsCollection, k as CollectionSchema, w as frontmatterSchema, z as DefaultMDXOptions } from "../core-DAna8bb8.js";
|
|
2
2
|
export { AnyCollection, BaseCollection, CollectionSchema, DefaultMDXOptions, DocCollection, DocsCollection, GlobalConfig, MDXPresetOptions, MetaCollection, PostprocessOptions, applyMdxPreset, defineCollections, defineConfig, defineDocs, frontmatterSchema, metaSchema, remarkInclude };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as MetaMethods, i as InternalTypeConfig, n as DocMethods, t as DocData } from "./types-
|
|
1
|
+
import { a as MetaMethods, i as InternalTypeConfig, n as DocMethods, t as DocData } from "./types-DRpz2Vq2.js";
|
|
2
2
|
import * as _$zod from "zod";
|
|
3
3
|
import * as _$fumadocs_core_source_schema0 from "fumadocs-core/source/schema";
|
|
4
4
|
import { metaSchema, pageSchema } from "fumadocs-core/source/schema";
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import fs from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
//#region ../vite/dist/index.js
|
|
4
|
+
async function findClosestPkgJsonPath(dir, predicate) {
|
|
5
|
+
let currentDir = dir.endsWith("package.json") ? path.dirname(dir) : dir;
|
|
6
|
+
while (currentDir) {
|
|
7
|
+
const pkg = path.join(currentDir, "package.json");
|
|
8
|
+
try {
|
|
9
|
+
if ((await fs.stat(pkg)).isFile() && (!predicate || await predicate(pkg))) return pkg;
|
|
10
|
+
} catch {}
|
|
11
|
+
const nextDir = path.dirname(currentDir);
|
|
12
|
+
if (nextDir === currentDir) break;
|
|
13
|
+
currentDir = nextDir;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
async function readJson(pkgJsonPath) {
|
|
17
|
+
return JSON.parse(await fs.readFile(pkgJsonPath, "utf8"));
|
|
18
|
+
}
|
|
19
|
+
var generated_default = {
|
|
20
|
+
optimizeDeps: {
|
|
21
|
+
"include": [
|
|
22
|
+
"@fumadocs/base-ui > rehype-raw > hast-util-raw > hast-util-to-parse5 > comma-separated-tokens",
|
|
23
|
+
"@fumadocs/base-ui > rehype-raw > hast-util-raw > hast-util-to-parse5 > space-separated-tokens",
|
|
24
|
+
"@fumadocs/base-ui > rehype-raw > hast-util-raw > html-void-elements",
|
|
25
|
+
"@fumadocs/base-ui > rehype-raw > hast-util-raw > mdast-util-to-hast > trim-lines",
|
|
26
|
+
"@fumadocs/base-ui > rehype-raw > hast-util-raw > web-namespaces",
|
|
27
|
+
"@fumadocs/base-ui > rehype-raw > hast-util-raw > zwitch",
|
|
28
|
+
"@fumadocs/base-ui > shiki > @shikijs/core > hast-util-to-html > ccount",
|
|
29
|
+
"@fumadocs/base-ui > shiki > @shikijs/core > hast-util-to-html > stringify-entities",
|
|
30
|
+
"@fumadocs/local-md > @mdx-js/mdx > collapse-white-space",
|
|
31
|
+
"@fumadocs/local-md > estree-util-to-js > source-map",
|
|
32
|
+
"@fumadocs/local-md > hast-util-to-jsx-runtime > comma-separated-tokens",
|
|
33
|
+
"@fumadocs/local-md > hast-util-to-jsx-runtime > mdast-util-mdx-expression > mdast-util-from-markdown > decode-named-character-reference > character-entities",
|
|
34
|
+
"@fumadocs/local-md > hast-util-to-jsx-runtime > mdast-util-mdx-expression > mdast-util-from-markdown > micromark > debug",
|
|
35
|
+
"@fumadocs/local-md > hast-util-to-jsx-runtime > mdast-util-mdx-expression > mdast-util-to-markdown > longest-streak",
|
|
36
|
+
"@fumadocs/local-md > hast-util-to-jsx-runtime > mdast-util-mdx-expression > mdast-util-to-markdown > zwitch",
|
|
37
|
+
"@fumadocs/local-md > hast-util-to-jsx-runtime > mdast-util-mdx-jsx > ccount",
|
|
38
|
+
"@fumadocs/local-md > hast-util-to-jsx-runtime > mdast-util-mdx-jsx > parse-entities",
|
|
39
|
+
"@fumadocs/local-md > hast-util-to-jsx-runtime > mdast-util-mdx-jsx > stringify-entities",
|
|
40
|
+
"@fumadocs/local-md > hast-util-to-jsx-runtime > space-separated-tokens",
|
|
41
|
+
"@fumadocs/local-md > hast-util-to-jsx-runtime > style-to-js",
|
|
42
|
+
"@fumadocs/local-md > picomatch",
|
|
43
|
+
"@fumadocs/local-md > remark > unified > bail",
|
|
44
|
+
"@fumadocs/local-md > remark > unified > extend",
|
|
45
|
+
"@fumadocs/local-md > remark-rehype > mdast-util-to-hast > trim-lines",
|
|
46
|
+
"@fumadocs/mdx-remote > @mdx-js/mdx > collapse-white-space",
|
|
47
|
+
"@fumadocs/mdx-remote > @mdx-js/mdx > hast-util-to-jsx-runtime > comma-separated-tokens",
|
|
48
|
+
"@fumadocs/mdx-remote > @mdx-js/mdx > hast-util-to-jsx-runtime > mdast-util-mdx-expression > mdast-util-to-markdown > longest-streak",
|
|
49
|
+
"@fumadocs/mdx-remote > @mdx-js/mdx > hast-util-to-jsx-runtime > mdast-util-mdx-jsx > ccount",
|
|
50
|
+
"@fumadocs/mdx-remote > @mdx-js/mdx > hast-util-to-jsx-runtime > mdast-util-mdx-jsx > parse-entities",
|
|
51
|
+
"@fumadocs/mdx-remote > @mdx-js/mdx > hast-util-to-jsx-runtime > mdast-util-mdx-jsx > stringify-entities",
|
|
52
|
+
"@fumadocs/mdx-remote > @mdx-js/mdx > hast-util-to-jsx-runtime > space-separated-tokens",
|
|
53
|
+
"@fumadocs/mdx-remote > @mdx-js/mdx > hast-util-to-jsx-runtime > style-to-js",
|
|
54
|
+
"@fumadocs/mdx-remote > @mdx-js/mdx > rehype-recma > hast-util-to-estree > zwitch",
|
|
55
|
+
"@fumadocs/mdx-remote > @mdx-js/mdx > remark-parse > mdast-util-from-markdown > decode-named-character-reference > character-entities",
|
|
56
|
+
"@fumadocs/mdx-remote > @mdx-js/mdx > remark-parse > mdast-util-from-markdown > micromark > debug",
|
|
57
|
+
"@fumadocs/mdx-remote > @mdx-js/mdx > remark-rehype > mdast-util-to-hast > trim-lines",
|
|
58
|
+
"@fumadocs/mdx-remote > @mdx-js/mdx > source-map",
|
|
59
|
+
"@fumadocs/mdx-remote > js-yaml > argparse",
|
|
60
|
+
"@fumadocs/mdx-remote > unified > bail",
|
|
61
|
+
"@fumadocs/mdx-remote > unified > extend",
|
|
62
|
+
"@fumadocs/story > ts-morph",
|
|
63
|
+
"fumadocs-core > github-slugger",
|
|
64
|
+
"fumadocs-core > hast-util-to-estree > comma-separated-tokens",
|
|
65
|
+
"fumadocs-core > hast-util-to-estree > mdast-util-mdx-jsx > ccount",
|
|
66
|
+
"fumadocs-core > hast-util-to-estree > mdast-util-mdx-jsx > parse-entities",
|
|
67
|
+
"fumadocs-core > hast-util-to-estree > mdast-util-mdx-jsx > stringify-entities",
|
|
68
|
+
"fumadocs-core > hast-util-to-estree > space-separated-tokens",
|
|
69
|
+
"fumadocs-core > hast-util-to-estree > style-to-js",
|
|
70
|
+
"fumadocs-core > hast-util-to-estree > zwitch",
|
|
71
|
+
"fumadocs-core > js-yaml > argparse",
|
|
72
|
+
"fumadocs-core > mdast-util-mdx > mdast-util-from-markdown > decode-named-character-reference > character-entities",
|
|
73
|
+
"fumadocs-core > mdast-util-mdx > mdast-util-from-markdown > micromark > debug",
|
|
74
|
+
"fumadocs-core > mdast-util-to-markdown > longest-streak",
|
|
75
|
+
"fumadocs-core > remark-gfm > mdast-util-gfm > mdast-util-gfm-table > markdown-table",
|
|
76
|
+
"fumadocs-core > remark-rehype > mdast-util-to-hast > trim-lines",
|
|
77
|
+
"fumadocs-core > shiki > @shikijs/core > hast-util-to-html > html-void-elements",
|
|
78
|
+
"fumadocs-core > tinyglobby > picomatch",
|
|
79
|
+
"fumadocs-core > unified > bail",
|
|
80
|
+
"fumadocs-core > unified > extend",
|
|
81
|
+
"fumadocs-mdx > @mdx-js/mdx > collapse-white-space",
|
|
82
|
+
"fumadocs-mdx > @mdx-js/mdx > hast-util-to-jsx-runtime > comma-separated-tokens",
|
|
83
|
+
"fumadocs-mdx > @mdx-js/mdx > hast-util-to-jsx-runtime > space-separated-tokens",
|
|
84
|
+
"fumadocs-mdx > @mdx-js/mdx > hast-util-to-jsx-runtime > style-to-js",
|
|
85
|
+
"fumadocs-mdx > @mdx-js/mdx > remark-rehype > mdast-util-to-hast > trim-lines",
|
|
86
|
+
"fumadocs-mdx > @mdx-js/mdx > source-map",
|
|
87
|
+
"fumadocs-mdx > esbuild",
|
|
88
|
+
"fumadocs-mdx > js-yaml > argparse",
|
|
89
|
+
"fumadocs-mdx > mdast-util-mdx > mdast-util-from-markdown > decode-named-character-reference > character-entities",
|
|
90
|
+
"fumadocs-mdx > mdast-util-mdx > mdast-util-from-markdown > micromark > debug",
|
|
91
|
+
"fumadocs-mdx > mdast-util-mdx > mdast-util-mdx-jsx > ccount",
|
|
92
|
+
"fumadocs-mdx > mdast-util-mdx > mdast-util-mdx-jsx > parse-entities",
|
|
93
|
+
"fumadocs-mdx > mdast-util-mdx > mdast-util-mdx-jsx > stringify-entities",
|
|
94
|
+
"fumadocs-mdx > mdast-util-mdx > mdast-util-to-markdown > longest-streak",
|
|
95
|
+
"fumadocs-mdx > mdast-util-mdx > mdast-util-to-markdown > zwitch",
|
|
96
|
+
"fumadocs-mdx > picocolors",
|
|
97
|
+
"fumadocs-mdx > picomatch",
|
|
98
|
+
"fumadocs-mdx > unified > bail",
|
|
99
|
+
"fumadocs-mdx > unified > extend",
|
|
100
|
+
"fumadocs-openapi > ajv",
|
|
101
|
+
"fumadocs-openapi > github-slugger",
|
|
102
|
+
"fumadocs-openapi > hast-util-to-jsx-runtime > comma-separated-tokens",
|
|
103
|
+
"fumadocs-openapi > hast-util-to-jsx-runtime > mdast-util-mdx-expression > mdast-util-from-markdown > decode-named-character-reference > character-entities",
|
|
104
|
+
"fumadocs-openapi > hast-util-to-jsx-runtime > mdast-util-mdx-expression > mdast-util-from-markdown > micromark > debug",
|
|
105
|
+
"fumadocs-openapi > hast-util-to-jsx-runtime > mdast-util-mdx-expression > mdast-util-to-markdown > longest-streak",
|
|
106
|
+
"fumadocs-openapi > hast-util-to-jsx-runtime > mdast-util-mdx-expression > mdast-util-to-markdown > zwitch",
|
|
107
|
+
"fumadocs-openapi > hast-util-to-jsx-runtime > mdast-util-mdx-jsx > ccount",
|
|
108
|
+
"fumadocs-openapi > hast-util-to-jsx-runtime > mdast-util-mdx-jsx > parse-entities",
|
|
109
|
+
"fumadocs-openapi > hast-util-to-jsx-runtime > mdast-util-mdx-jsx > stringify-entities",
|
|
110
|
+
"fumadocs-openapi > hast-util-to-jsx-runtime > space-separated-tokens",
|
|
111
|
+
"fumadocs-openapi > hast-util-to-jsx-runtime > style-to-js",
|
|
112
|
+
"fumadocs-openapi > js-yaml > argparse",
|
|
113
|
+
"fumadocs-openapi > remark > unified > bail",
|
|
114
|
+
"fumadocs-openapi > remark > unified > extend",
|
|
115
|
+
"fumadocs-openapi > remark-rehype > mdast-util-to-hast > trim-lines",
|
|
116
|
+
"fumadocs-openapi > shiki > @shikijs/core > hast-util-to-html > html-void-elements",
|
|
117
|
+
"fumadocs-openapi > xml-js",
|
|
118
|
+
"fumadocs-twoslash > @shikijs/twoslash > @shikijs/core > hast-util-to-html > comma-separated-tokens",
|
|
119
|
+
"fumadocs-twoslash > @shikijs/twoslash > @shikijs/core > hast-util-to-html > html-void-elements",
|
|
120
|
+
"fumadocs-twoslash > @shikijs/twoslash > @shikijs/core > hast-util-to-html > space-separated-tokens",
|
|
121
|
+
"fumadocs-twoslash > @shikijs/twoslash > @shikijs/core > hast-util-to-html > stringify-entities",
|
|
122
|
+
"fumadocs-twoslash > mdast-util-from-markdown > decode-named-character-reference > character-entities",
|
|
123
|
+
"fumadocs-twoslash > mdast-util-from-markdown > micromark > debug",
|
|
124
|
+
"fumadocs-twoslash > mdast-util-gfm > mdast-util-gfm-autolink-literal > ccount",
|
|
125
|
+
"fumadocs-twoslash > mdast-util-gfm > mdast-util-gfm-table > markdown-table",
|
|
126
|
+
"fumadocs-twoslash > mdast-util-gfm > mdast-util-to-markdown > longest-streak",
|
|
127
|
+
"fumadocs-twoslash > mdast-util-gfm > mdast-util-to-markdown > zwitch",
|
|
128
|
+
"fumadocs-twoslash > mdast-util-to-hast > trim-lines",
|
|
129
|
+
"fumadocs-typescript > hast-util-to-estree > comma-separated-tokens",
|
|
130
|
+
"fumadocs-typescript > hast-util-to-estree > mdast-util-mdx-expression > mdast-util-from-markdown > decode-named-character-reference > character-entities",
|
|
131
|
+
"fumadocs-typescript > hast-util-to-estree > mdast-util-mdx-expression > mdast-util-from-markdown > micromark > debug",
|
|
132
|
+
"fumadocs-typescript > hast-util-to-estree > mdast-util-mdx-expression > mdast-util-to-markdown > longest-streak",
|
|
133
|
+
"fumadocs-typescript > hast-util-to-estree > mdast-util-mdx-jsx > ccount",
|
|
134
|
+
"fumadocs-typescript > hast-util-to-estree > mdast-util-mdx-jsx > parse-entities",
|
|
135
|
+
"fumadocs-typescript > hast-util-to-estree > mdast-util-mdx-jsx > stringify-entities",
|
|
136
|
+
"fumadocs-typescript > hast-util-to-estree > space-separated-tokens",
|
|
137
|
+
"fumadocs-typescript > hast-util-to-estree > style-to-js",
|
|
138
|
+
"fumadocs-typescript > hast-util-to-estree > zwitch",
|
|
139
|
+
"fumadocs-typescript > remark-rehype > mdast-util-to-hast > trim-lines",
|
|
140
|
+
"fumadocs-typescript > shiki > @shikijs/core > hast-util-to-html > html-void-elements",
|
|
141
|
+
"fumadocs-typescript > ts-morph",
|
|
142
|
+
"fumadocs-typescript > unified > bail",
|
|
143
|
+
"fumadocs-typescript > unified > extend",
|
|
144
|
+
"fumadocs-ui > rehype-raw > hast-util-raw > hast-util-to-parse5 > comma-separated-tokens",
|
|
145
|
+
"fumadocs-ui > rehype-raw > hast-util-raw > hast-util-to-parse5 > space-separated-tokens",
|
|
146
|
+
"fumadocs-ui > rehype-raw > hast-util-raw > html-void-elements",
|
|
147
|
+
"fumadocs-ui > rehype-raw > hast-util-raw > mdast-util-to-hast > trim-lines",
|
|
148
|
+
"fumadocs-ui > rehype-raw > hast-util-raw > web-namespaces",
|
|
149
|
+
"fumadocs-ui > rehype-raw > hast-util-raw > zwitch",
|
|
150
|
+
"fumadocs-ui > shiki > @shikijs/core > hast-util-to-html > ccount",
|
|
151
|
+
"fumadocs-ui > shiki > @shikijs/core > hast-util-to-html > stringify-entities"
|
|
152
|
+
],
|
|
153
|
+
"exclude": [
|
|
154
|
+
"@fumadocs/base-ui",
|
|
155
|
+
"@fumadocs/basehub",
|
|
156
|
+
"@fumadocs/local-md",
|
|
157
|
+
"@fumadocs/mdx-remote",
|
|
158
|
+
"@fumadocs/sanity",
|
|
159
|
+
"@fumadocs/story",
|
|
160
|
+
"@fumadocs/tailwind",
|
|
161
|
+
"fumadocs-core",
|
|
162
|
+
"fumadocs-mdx",
|
|
163
|
+
"fumadocs-openapi",
|
|
164
|
+
"fumadocs-twoslash",
|
|
165
|
+
"fumadocs-typescript",
|
|
166
|
+
"fumadocs-ui"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
ssr: { "noExternal": [
|
|
170
|
+
"@fumadocs/base-ui",
|
|
171
|
+
"@fumadocs/basehub",
|
|
172
|
+
"@fumadocs/local-md",
|
|
173
|
+
"@fumadocs/mdx-remote",
|
|
174
|
+
"@fumadocs/sanity",
|
|
175
|
+
"@fumadocs/story",
|
|
176
|
+
"@fumadocs/tailwind",
|
|
177
|
+
"fumadocs-core",
|
|
178
|
+
"fumadocs-mdx",
|
|
179
|
+
"fumadocs-openapi",
|
|
180
|
+
"fumadocs-twoslash",
|
|
181
|
+
"fumadocs-typescript",
|
|
182
|
+
"fumadocs-ui"
|
|
183
|
+
] }
|
|
184
|
+
};
|
|
185
|
+
async function getConfig(options) {
|
|
186
|
+
const pkgJsonPath = await findClosestPkgJsonPath(options.root);
|
|
187
|
+
if (!pkgJsonPath) return {
|
|
188
|
+
optimizeDeps: {
|
|
189
|
+
include: [],
|
|
190
|
+
exclude: []
|
|
191
|
+
},
|
|
192
|
+
ssr: { noExternal: [] }
|
|
193
|
+
};
|
|
194
|
+
const pkgJson = await readJson(pkgJsonPath).catch((e) => {
|
|
195
|
+
throw new Error(`Unable to read ${pkgJsonPath}`, { cause: e });
|
|
196
|
+
});
|
|
197
|
+
const out = structuredClone(generated_default);
|
|
198
|
+
const deps = /* @__PURE__ */ new Set();
|
|
199
|
+
if (pkgJson.dependencies) for (const name in pkgJson.dependencies) deps.add(name);
|
|
200
|
+
if (pkgJson.devDependencies) for (const name in pkgJson.devDependencies) deps.add(name);
|
|
201
|
+
out.optimizeDeps.include = out.optimizeDeps.include.filter((item) => {
|
|
202
|
+
const first = item.slice(0, item.indexOf(" > "));
|
|
203
|
+
return deps.has(first);
|
|
204
|
+
});
|
|
205
|
+
out.optimizeDeps.exclude = out.optimizeDeps.exclude.filter((item) => deps.has(item));
|
|
206
|
+
out.ssr.noExternal = out.ssr.noExternal.filter((item) => deps.has(item));
|
|
207
|
+
return out;
|
|
208
|
+
}
|
|
209
|
+
//#endregion
|
|
210
|
+
export { getConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { L as ExtractedReference, a as EmitOptions, c as PluginContext, d as TransformOptions, i as EmitEntry, l as PluginOption, n as Core, o as EmitOutput, r as CoreOptions, s as Plugin, t as CompilationContext, u as ServerContext } from "./core-
|
|
2
|
-
import { t as CompiledMDXProperties } from "./build-mdx-
|
|
1
|
+
import { L as ExtractedReference, a as EmitOptions, c as PluginContext, d as TransformOptions, i as EmitEntry, l as PluginOption, n as Core, o as EmitOutput, r as CoreOptions, s as Plugin, t as CompilationContext, u as ServerContext } from "./core-DAna8bb8.js";
|
|
2
|
+
import { t as CompiledMDXProperties } from "./build-mdx-CAXqH1_C.js";
|
|
3
3
|
export { type CompilationContext, type CompiledMDXProperties, type Core, type CoreOptions, type EmitEntry, type EmitOptions, type EmitOutput, type ExtractedReference, type Plugin, type PluginContext, type PluginOption, type ServerContext, type TransformOptions };
|
package/dist/next/index.d.ts
CHANGED
package/dist/node/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { f as IndexFilePlugin, m as indexFile, p as IndexFilePluginOptions } from "../core-
|
|
1
|
+
import { f as IndexFilePlugin, m as indexFile, p as IndexFilePluginOptions } from "../core-DAna8bb8.js";
|
|
2
2
|
export { IndexFilePlugin, IndexFilePluginOptions, indexFile as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as DocCollection, j as DocsCollection } from "../core-
|
|
2
|
-
import { i as InternalTypeConfig } from "../types-
|
|
3
|
-
import { t as CompiledMDXProperties } from "../build-mdx-
|
|
1
|
+
import { A as DocCollection, j as DocsCollection } from "../core-DAna8bb8.js";
|
|
2
|
+
import { i as InternalTypeConfig } from "../types-DRpz2Vq2.js";
|
|
3
|
+
import { t as CompiledMDXProperties } from "../build-mdx-CAXqH1_C.js";
|
|
4
4
|
import { FC, ReactNode } from "react";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as DocCollection, g as AsyncDocsCollectionEntry, h as AsyncDocCollectionEntry, j as DocsCollection, r as CoreOptions, x as ServerOptions } from "../core-
|
|
2
|
-
import { i as InternalTypeConfig, r as FileInfo } from "../types-
|
|
1
|
+
import { A as DocCollection, g as AsyncDocsCollectionEntry, h as AsyncDocCollectionEntry, j as DocsCollection, r as CoreOptions, x as ServerOptions } from "../core-DAna8bb8.js";
|
|
2
|
+
import { i as InternalTypeConfig, r as FileInfo } from "../types-DRpz2Vq2.js";
|
|
3
3
|
import * as _$_standard_schema_spec0 from "@standard-schema/spec";
|
|
4
4
|
import * as _$fumadocs_core_source0 from "fumadocs-core/source";
|
|
5
5
|
|
package/dist/runtime/server.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as toFumadocsSource, S as server, _ as DocCollectionEntry, b as ServerCreate, g as AsyncDocsCollectionEntry, h as AsyncDocCollectionEntry, v as DocsCollectionEntry, x as ServerOptions, y as MetaCollectionEntry } from "../core-
|
|
1
|
+
import { C as toFumadocsSource, S as server, _ as DocCollectionEntry, b as ServerCreate, g as AsyncDocsCollectionEntry, h as AsyncDocCollectionEntry, v as DocsCollectionEntry, x as ServerOptions, y as MetaCollectionEntry } from "../core-DAna8bb8.js";
|
|
2
2
|
export { AsyncDocCollectionEntry, AsyncDocsCollectionEntry, DocCollectionEntry, DocsCollectionEntry, MetaCollectionEntry, ServerCreate, ServerOptions, server, toFumadocsSource };
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MetaMethods, i as InternalTypeConfig, n as DocMethods, r as FileInfo, t as DocData } from "../types-
|
|
1
|
+
import { a as MetaMethods, i as InternalTypeConfig, n as DocMethods, r as FileInfo, t as DocData } from "../types-DRpz2Vq2.js";
|
|
2
2
|
export { DocData, DocMethods, FileInfo, InternalTypeConfig, MetaMethods };
|
package/dist/vite/index.d.ts
CHANGED
package/dist/vite/index.js
CHANGED
|
@@ -5,7 +5,6 @@ import { a as createIntegratedConfigLoader, r as toVite } from "../adapter-BketA
|
|
|
5
5
|
import { t as createMetaLoader } from "../meta-B6guI74I.js";
|
|
6
6
|
import { t as indexFile } from "../index-file-CyGG-8n8.js";
|
|
7
7
|
import { runnerImport } from "vite";
|
|
8
|
-
import { crawlFrameworkPkgs } from "vitefu";
|
|
9
8
|
//#region src/vite/index.ts
|
|
10
9
|
async function mdx(_config, pluginOptions = {}) {
|
|
11
10
|
const options = applyDefaults(pluginOptions);
|
|
@@ -18,19 +17,10 @@ async function mdx(_config, pluginOptions = {}) {
|
|
|
18
17
|
return {
|
|
19
18
|
name: "fumadocs-mdx",
|
|
20
19
|
enforce: "pre",
|
|
21
|
-
async config(
|
|
22
|
-
if (!options.updateViteConfig) return
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
isBuild: command === "build",
|
|
26
|
-
isFrameworkPkgByName(pkgName) {
|
|
27
|
-
if (pkgName.startsWith("@fumapress/") || pkgName.startsWith("@fumadocs/") || pkgName.startsWith("fumadocs-") || pkgName === "fumapress") return true;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
return {
|
|
31
|
-
ssr: { noExternal: out.ssr.noExternal },
|
|
32
|
-
optimizeDeps: out.optimizeDeps
|
|
33
|
-
};
|
|
20
|
+
async config() {
|
|
21
|
+
if (!options.updateViteConfig) return;
|
|
22
|
+
const { getConfig } = await import("../dist-DV7kmyst.js");
|
|
23
|
+
return getConfig({ root: process.cwd() });
|
|
34
24
|
},
|
|
35
25
|
async buildStart() {
|
|
36
26
|
await core.emit({ write: true });
|
package/dist/webpack/mdx.d.ts
CHANGED
package/dist/webpack/meta.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-mdx",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.3",
|
|
4
4
|
"description": "The built-in source for Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"unist-util-remove-position": "^5.0.0",
|
|
58
58
|
"unist-util-visit": "^5.1.0",
|
|
59
59
|
"vfile": "^6.0.3",
|
|
60
|
-
"vitefu": "^1.1.3",
|
|
61
60
|
"zod": "^4.4.3"
|
|
62
61
|
},
|
|
63
62
|
"devDependencies": {
|
|
@@ -78,8 +77,9 @@
|
|
|
78
77
|
"tsdown": "0.22.0",
|
|
79
78
|
"vite": "^8.0.11",
|
|
80
79
|
"webpack": "^5.106.2",
|
|
80
|
+
"@fumadocs/vite": "0.0.1",
|
|
81
81
|
"tsconfig": "0.0.0",
|
|
82
|
-
"fumadocs-core": "16.8.
|
|
82
|
+
"fumadocs-core": "16.8.10"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"@types/mdast": "*",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|