fumadocs-mdx 14.0.1 → 14.0.2

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.
Files changed (72) hide show
  1. package/dist/{build-mdx-6UAK5FF5.js → build-mdx-W3233QBZ.js} +1 -1
  2. package/dist/bun/index.d.ts +1 -1
  3. package/dist/bun/index.js +5 -5
  4. package/dist/{chunk-ZY6UZ7NH.js → chunk-6RPNS75C.js} +1 -1
  5. package/dist/{chunk-7UKSZSPY.js → chunk-ED3ON275.js} +3 -4
  6. package/dist/{chunk-BEBCWQC7.js → chunk-GB4W3YCZ.js} +1 -1
  7. package/dist/{chunk-SLY7WXTX.js → chunk-KOPLIEVQ.js} +5 -6
  8. package/dist/{chunk-MTTISKQJ.js → chunk-LPX7ZO66.js} +1 -1
  9. package/dist/{chunk-K6HCOGOX.js → chunk-OLL7FM7W.js} +2 -2
  10. package/dist/{chunk-IQGEFL2B.js → chunk-Q5OSGLJL.js} +1 -1
  11. package/dist/{chunk-E5DJTSIM.js → chunk-S7KOJHHO.js} +4 -1
  12. package/dist/{chunk-6NISOLQ6.js → chunk-USWQVJWR.js} +1 -1
  13. package/dist/config/index.d.ts +1 -1
  14. package/dist/config/index.js +1 -1
  15. package/dist/{core-B9ZoS6sA.d.ts → core-C3QZSdEx.d.ts} +1 -1
  16. package/dist/{index-CNOvhtOn.d.ts → index-RVIZxMZG.d.ts} +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/load-from-file-OZ5N7DXU.js +8 -0
  19. package/dist/next/index.cjs +8 -6
  20. package/dist/next/index.d.ts +1 -1
  21. package/dist/next/index.js +5 -5
  22. package/dist/node/loader.js +3 -3
  23. package/dist/plugins/index-file.d.ts +1 -1
  24. package/dist/plugins/index-file.js +1 -1
  25. package/dist/plugins/json-schema.d.ts +1 -1
  26. package/dist/plugins/last-modified.d.ts +5 -2
  27. package/dist/plugins/last-modified.js +10 -3
  28. package/dist/runtime/browser.d.ts +1 -1
  29. package/dist/runtime/dynamic.d.ts +1 -1
  30. package/dist/runtime/dynamic.js +4 -4
  31. package/dist/runtime/server.d.ts +1 -1
  32. package/dist/vite/index.d.ts +1 -1
  33. package/dist/vite/index.js +7 -7
  34. package/dist/webpack/mdx.d.ts +2 -2
  35. package/dist/webpack/mdx.js +4 -4
  36. package/dist/webpack/meta.d.ts +2 -2
  37. package/dist/webpack/meta.js +3 -3
  38. package/package.json +4 -6
  39. package/dist/bin.cjs +0 -1958
  40. package/dist/bin.d.cts +0 -1
  41. package/dist/bun/index.cjs +0 -1147
  42. package/dist/bun/index.d.cts +0 -25
  43. package/dist/config/index.cjs +0 -400
  44. package/dist/config/index.d.cts +0 -18
  45. package/dist/core-DTuP23zu.d.cts +0 -341
  46. package/dist/index-BD8Woo4m.d.cts +0 -8
  47. package/dist/index.cjs +0 -18
  48. package/dist/index.d.cts +0 -61
  49. package/dist/load-from-file-5HUQN36V.js +0 -8
  50. package/dist/next/index.d.cts +0 -33
  51. package/dist/node/loader.cjs +0 -1200
  52. package/dist/node/loader.d.cts +0 -5
  53. package/dist/plugins/index-file.cjs +0 -495
  54. package/dist/plugins/index-file.d.cts +0 -14
  55. package/dist/plugins/json-schema.cjs +0 -114
  56. package/dist/plugins/json-schema.d.cts +0 -31
  57. package/dist/plugins/last-modified.cjs +0 -110
  58. package/dist/plugins/last-modified.d.cts +0 -37
  59. package/dist/runtime/browser.cjs +0 -93
  60. package/dist/runtime/browser.d.cts +0 -53
  61. package/dist/runtime/dynamic.cjs +0 -1023
  62. package/dist/runtime/dynamic.d.cts +0 -27
  63. package/dist/runtime/server.cjs +0 -176
  64. package/dist/runtime/server.d.cts +0 -14
  65. package/dist/runtime/types.cjs +0 -18
  66. package/dist/runtime/types.d.cts +0 -61
  67. package/dist/vite/index.cjs +0 -1687
  68. package/dist/vite/index.d.cts +0 -44
  69. package/dist/webpack/mdx.cjs +0 -1124
  70. package/dist/webpack/mdx.d.cts +0 -20
  71. package/dist/webpack/meta.cjs +0 -684
  72. package/dist/webpack/meta.d.cts +0 -20
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildMDX
3
- } from "./chunk-SLY7WXTX.js";
3
+ } from "./chunk-KOPLIEVQ.js";
4
4
  import "./chunk-FBLMK4RS.js";
5
5
  import "./chunk-VWJKRQZR.js";
6
6
  export {
@@ -1,5 +1,5 @@
1
1
  import { BunPlugin } from 'bun';
2
- import { i as CoreOptions } from '../core-B9ZoS6sA.js';
2
+ import { C as CoreOptions } from '../core-C3QZSdEx.js';
3
3
  import '@mdx-js/mdx';
4
4
  import '@standard-schema/spec';
5
5
  import 'unified';
package/dist/bun/index.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  buildConfig
3
- } from "../chunk-ZY6UZ7NH.js";
4
- import "../chunk-E5DJTSIM.js";
3
+ } from "../chunk-6RPNS75C.js";
4
+ import "../chunk-S7KOJHHO.js";
5
5
  import {
6
6
  createMdxLoader
7
- } from "../chunk-6NISOLQ6.js";
7
+ } from "../chunk-USWQVJWR.js";
8
8
  import {
9
9
  createMetaLoader
10
10
  } from "../chunk-TYJDYTKH.js";
11
11
  import {
12
12
  createIntegratedConfigLoader,
13
13
  toBun
14
- } from "../chunk-K6HCOGOX.js";
14
+ } from "../chunk-OLL7FM7W.js";
15
15
  import "../chunk-4JSFLXXT.js";
16
16
  import {
17
17
  _Defaults,
18
18
  createCore
19
- } from "../chunk-BEBCWQC7.js";
19
+ } from "../chunk-GB4W3YCZ.js";
20
20
  import "../chunk-WBIHDYMN.js";
21
21
  import "../chunk-VWJKRQZR.js";
22
22
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  applyMdxPreset
3
- } from "./chunk-E5DJTSIM.js";
3
+ } from "./chunk-S7KOJHHO.js";
4
4
 
5
5
  // src/config/build.ts
6
6
  import picomatch from "picomatch";
@@ -51,7 +51,9 @@ function indexFile(options = {}) {
51
51
  }
52
52
  function generateConfigs(core) {
53
53
  const serverOptions = {};
54
- const typeConfigs = [];
54
+ const typeConfigs = [
55
+ 'import("fumadocs-mdx/runtime/types").InternalTypeConfig'
56
+ ];
55
57
  const ctx = core.getPluginContext();
56
58
  for (const plugin of core.getPlugins()) {
57
59
  const indexFilePlugin = plugin["index-file"];
@@ -60,9 +62,6 @@ function indexFile(options = {}) {
60
62
  const config2 = indexFilePlugin.generateTypeConfig?.call(ctx);
61
63
  if (config2) typeConfigs.push(config2);
62
64
  }
63
- if (typeConfigs.length === 0) {
64
- typeConfigs.push("{ DocData: {} }");
65
- }
66
65
  return {
67
66
  serverOptions,
68
67
  tc: typeConfigs.join(" & ")
@@ -182,7 +182,7 @@ function postprocessPlugin() {
182
182
  /**
183
183
  * extracted references (e.g. hrefs, paths), useful for analyzing relationships between pages.
184
184
  */
185
- extractedReferences?: import('fumadocs-mdx').ExtractedReference[];
185
+ extractedReferences: import("fumadocs-mdx").ExtractedReference[];
186
186
  }`;
187
187
  return {
188
188
  "index-file": {
@@ -38,6 +38,10 @@ function remarkPostprocess({
38
38
  });
39
39
  }
40
40
  file.data["mdx-export"] ??= [];
41
+ file.data["mdx-export"].push({
42
+ name: "frontmatter",
43
+ value: frontmatter
44
+ });
41
45
  if (extractLinkReferences) {
42
46
  const urls = [];
43
47
  visit(tree, "link", (node) => {
@@ -135,12 +139,7 @@ async function buildMDX(core, collection, {
135
139
  if (!processor) {
136
140
  const postprocessOptions = {
137
141
  _format: format,
138
- ...collection?.postprocess,
139
- valueToExport: [
140
- ...collection?.postprocess?.valueToExport ?? [],
141
- "structuredData",
142
- "frontmatter"
143
- ]
142
+ ...collection?.postprocess
144
143
  };
145
144
  processor = createProcessor({
146
145
  outputFormat: "program",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildConfig
3
- } from "./chunk-ZY6UZ7NH.js";
3
+ } from "./chunk-6RPNS75C.js";
4
4
 
5
5
  // src/config/load-from-file.ts
6
6
  import { pathToFileURL } from "url";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ValidationError
3
- } from "./chunk-BEBCWQC7.js";
3
+ } from "./chunk-GB4W3YCZ.js";
4
4
 
5
5
  // src/loaders/adapter.ts
6
6
  import { fileURLToPath } from "url";
@@ -143,7 +143,7 @@ function createStandaloneConfigLoader({
143
143
  return stats.mtime.getTime().toString();
144
144
  }
145
145
  async function newConfig() {
146
- const { loadConfig } = await import("./load-from-file-5HUQN36V.js");
146
+ const { loadConfig } = await import("./load-from-file-OZ5N7DXU.js");
147
147
  await core.init({
148
148
  config: loadConfig(core, buildConfig)
149
149
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCore
3
- } from "./chunk-BEBCWQC7.js";
3
+ } from "./chunk-GB4W3YCZ.js";
4
4
 
5
5
  // src/webpack/index.ts
6
6
  var core;
@@ -47,7 +47,10 @@ function applyMdxPreset(options = {}) {
47
47
  ...v,
48
48
  remarkStructureOptions !== false && [
49
49
  plugins.remarkStructure,
50
- remarkStructureOptions
50
+ {
51
+ exportAs: "structuredData",
52
+ ...remarkStructureOptions
53
+ }
51
54
  ],
52
55
  valueToExport.length > 0 && (() => {
53
56
  return (_, file) => {
@@ -73,7 +73,7 @@ function createMdxLoader(configLoader) {
73
73
  };
74
74
  }
75
75
  const lineOffset = isDevelopment ? countLines(matter.matter) : 0;
76
- const { buildMDX } = await import("./build-mdx-6UAK5FF5.js");
76
+ const { buildMDX } = await import("./build-mdx-W3233QBZ.js");
77
77
  const compiled = await buildMDX(configLoader.core, docCollection, {
78
78
  isDevelopment,
79
79
  source: "\n".repeat(lineOffset) + matter.content,
@@ -1,4 +1,4 @@
1
- export { A as AnyCollection, B as BaseCollection, C as CollectionSchema, e as DefaultMDXOptions, D as DocCollection, a as DocsCollection, G as GlobalConfig, f as MDXPresetOptions, M as MetaCollection, P as PostprocessOptions, g as applyMdxPreset, d as defineCollections, c as defineConfig, b as defineDocs, h as frontmatterSchema, m as metaSchema } from '../core-B9ZoS6sA.js';
1
+ export { A as AnyCollection, B as BaseCollection, a as CollectionSchema, f as DefaultMDXOptions, D as DocCollection, b as DocsCollection, G as GlobalConfig, g as MDXPresetOptions, M as MetaCollection, P as PostprocessOptions, h as applyMdxPreset, d as defineCollections, e as defineConfig, c as defineDocs, i as frontmatterSchema, m as metaSchema } from '../core-C3QZSdEx.js';
2
2
  import { Processor, Transformer } from 'unified';
3
3
  import { Root } from 'mdast';
4
4
  import '@mdx-js/mdx';
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-FBLMK4RS.js";
4
4
  import {
5
5
  applyMdxPreset
6
- } from "../chunk-E5DJTSIM.js";
6
+ } from "../chunk-S7KOJHHO.js";
7
7
  import "../chunk-VWJKRQZR.js";
8
8
 
9
9
  // src/config/zod-4.ts
@@ -338,4 +338,4 @@ declare function createCore(options: CoreOptions, defaultPlugins?: PluginOption[
338
338
  };
339
339
  type Core = ReturnType<typeof createCore>;
340
340
 
341
- export { type AnyCollection as A, type BaseCollection as B, type CollectionSchema as C, type DocCollection as D, type ExtractedReference as E, toFumadocsSource as F, type GlobalConfig as G, indexFile as H, type IndexFilePluginOptions as I, type IndexFilePlugin as J, type MetaCollection as M, type PostprocessOptions as P, type ServerOptions as S, type TransformOptions as T, _Defaults as _, type DocsCollection as a, defineDocs as b, defineConfig as c, defineCollections as d, type DefaultMDXOptions as e, type MDXPresetOptions as f, applyMdxPreset as g, frontmatterSchema as h, type CoreOptions as i, type Plugin as j, type AsyncDocCollectionEntry as k, type AsyncDocsCollectionEntry as l, metaSchema as m, type EmitEntry as n, type PluginContext as o, type CompilationContext as p, type PluginOption as q, type ServerContext as r, type EmitOptions as s, createCore as t, type Core as u, type MetaCollectionEntry as v, type DocCollectionEntry as w, type DocsCollectionEntry as x, type ServerCreate as y, server as z };
341
+ export { type AnyCollection as A, type BaseCollection as B, type CoreOptions as C, type DocCollection as D, type ExtractedReference as E, toFumadocsSource as F, type GlobalConfig as G, indexFile as H, type IndexFilePluginOptions as I, type IndexFilePlugin as J, type MetaCollection as M, type PostprocessOptions as P, type ServerOptions as S, type TransformOptions as T, _Defaults as _, type CollectionSchema as a, type DocsCollection as b, defineDocs as c, defineCollections as d, defineConfig as e, type DefaultMDXOptions as f, type MDXPresetOptions as g, applyMdxPreset as h, frontmatterSchema as i, type Plugin as j, type AsyncDocCollectionEntry as k, type AsyncDocsCollectionEntry as l, metaSchema as m, type EmitEntry as n, type PluginContext as o, type CompilationContext as p, type PluginOption as q, type ServerContext as r, type EmitOptions as s, createCore as t, type Core as u, type MetaCollectionEntry as v, type DocCollectionEntry as w, type DocsCollectionEntry as x, type ServerCreate as y, server as z };
@@ -1,4 +1,4 @@
1
- import { i as CoreOptions } from './core-B9ZoS6sA.js';
1
+ import { C as CoreOptions } from './core-C3QZSdEx.js';
2
2
 
3
3
  interface WebpackLoaderOptions extends CoreOptions {
4
4
  compiledConfigPath: string;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { p as CompilationContext, u as Core, i as CoreOptions, n as EmitEntry, s as EmitOptions, E as ExtractedReference, j as Plugin, o as PluginContext, q as PluginOption, r as ServerContext, T as TransformOptions, _ as _Defaults, t as createCore } from './core-B9ZoS6sA.js';
1
+ export { p as CompilationContext, u as Core, C as CoreOptions, n as EmitEntry, s as EmitOptions, E as ExtractedReference, j as Plugin, o as PluginContext, q as PluginOption, r as ServerContext, T as TransformOptions, _ as _Defaults, t as createCore } from './core-C3QZSdEx.js';
2
2
  import { createProcessor } from '@mdx-js/mdx';
3
3
  import { StructuredData } from 'fumadocs-core/mdx-plugins';
4
4
  import { TOCItemType } from 'fumadocs-core/toc';
@@ -0,0 +1,8 @@
1
+ import {
2
+ loadConfig
3
+ } from "./chunk-LPX7ZO66.js";
4
+ import "./chunk-6RPNS75C.js";
5
+ import "./chunk-S7KOJHHO.js";
6
+ export {
7
+ loadConfig
8
+ };
@@ -91,7 +91,10 @@ function applyMdxPreset(options = {}) {
91
91
  ...v,
92
92
  remarkStructureOptions !== false && [
93
93
  plugins.remarkStructure,
94
- remarkStructureOptions
94
+ {
95
+ exportAs: "structuredData",
96
+ ...remarkStructureOptions
97
+ }
95
98
  ],
96
99
  valueToExport.length > 0 && (() => {
97
100
  return (_, file) => {
@@ -557,7 +560,7 @@ function postprocessPlugin() {
557
560
  /**
558
561
  * extracted references (e.g. hrefs, paths), useful for analyzing relationships between pages.
559
562
  */
560
- extractedReferences?: import('fumadocs-mdx').ExtractedReference[];
563
+ extractedReferences: import("fumadocs-mdx").ExtractedReference[];
561
564
  }`;
562
565
  return {
563
566
  "index-file": {
@@ -659,7 +662,9 @@ function indexFile(options = {}) {
659
662
  }
660
663
  function generateConfigs(core) {
661
664
  const serverOptions = {};
662
- const typeConfigs = [];
665
+ const typeConfigs = [
666
+ 'import("fumadocs-mdx/runtime/types").InternalTypeConfig'
667
+ ];
663
668
  const ctx = core.getPluginContext();
664
669
  for (const plugin of core.getPlugins()) {
665
670
  const indexFilePlugin = plugin["index-file"];
@@ -668,9 +673,6 @@ function indexFile(options = {}) {
668
673
  const config2 = indexFilePlugin.generateTypeConfig?.call(ctx);
669
674
  if (config2) typeConfigs.push(config2);
670
675
  }
671
- if (typeConfigs.length === 0) {
672
- typeConfigs.push("{ DocData: {} }");
673
- }
674
676
  return {
675
677
  serverOptions,
676
678
  tc: typeConfigs.join(" & ")
@@ -1,5 +1,5 @@
1
1
  import { NextConfig } from 'next';
2
- import { I as IndexFilePluginOptions } from '../core-B9ZoS6sA.js';
2
+ import { I as IndexFilePluginOptions } from '../core-C3QZSdEx.js';
3
3
  import '@mdx-js/mdx';
4
4
  import '@standard-schema/spec';
5
5
  import 'unified';
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  loadConfig
3
- } from "../chunk-MTTISKQJ.js";
4
- import "../chunk-ZY6UZ7NH.js";
5
- import "../chunk-E5DJTSIM.js";
3
+ } from "../chunk-LPX7ZO66.js";
4
+ import "../chunk-6RPNS75C.js";
5
+ import "../chunk-S7KOJHHO.js";
6
6
  import {
7
7
  mdxLoaderGlob,
8
8
  metaLoaderGlob
@@ -11,10 +11,10 @@ import {
11
11
  ValidationError,
12
12
  _Defaults,
13
13
  createCore
14
- } from "../chunk-BEBCWQC7.js";
14
+ } from "../chunk-GB4W3YCZ.js";
15
15
  import {
16
16
  indexFile
17
- } from "../chunk-7UKSZSPY.js";
17
+ } from "../chunk-ED3ON275.js";
18
18
  import "../chunk-WBIHDYMN.js";
19
19
  import "../chunk-VWJKRQZR.js";
20
20
 
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  createMdxLoader
3
- } from "../chunk-6NISOLQ6.js";
3
+ } from "../chunk-USWQVJWR.js";
4
4
  import {
5
5
  createMetaLoader
6
6
  } from "../chunk-TYJDYTKH.js";
7
7
  import {
8
8
  createStandaloneConfigLoader,
9
9
  toNode
10
- } from "../chunk-K6HCOGOX.js";
10
+ } from "../chunk-OLL7FM7W.js";
11
11
  import "../chunk-4JSFLXXT.js";
12
12
  import {
13
13
  _Defaults,
14
14
  createCore
15
- } from "../chunk-BEBCWQC7.js";
15
+ } from "../chunk-GB4W3YCZ.js";
16
16
  import "../chunk-WBIHDYMN.js";
17
17
  import "../chunk-VWJKRQZR.js";
18
18
 
@@ -1,4 +1,4 @@
1
- export { J as IndexFilePlugin, I as IndexFilePluginOptions, H as default } from '../core-B9ZoS6sA.js';
1
+ export { J as IndexFilePlugin, I as IndexFilePluginOptions, H as default } from '../core-C3QZSdEx.js';
2
2
  import '@mdx-js/mdx';
3
3
  import '@standard-schema/spec';
4
4
  import 'unified';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  indexFile
3
- } from "../chunk-7UKSZSPY.js";
3
+ } from "../chunk-ED3ON275.js";
4
4
  import "../chunk-WBIHDYMN.js";
5
5
  import "../chunk-VWJKRQZR.js";
6
6
  export {
@@ -1,4 +1,4 @@
1
- import { j as Plugin } from '../core-B9ZoS6sA.js';
1
+ import { j as Plugin } from '../core-C3QZSdEx.js';
2
2
  import '@mdx-js/mdx';
3
3
  import '@standard-schema/spec';
4
4
  import 'unified';
@@ -1,4 +1,4 @@
1
- import { j as Plugin } from '../core-B9ZoS6sA.js';
1
+ import { j as Plugin } from '../core-C3QZSdEx.js';
2
2
  import '@mdx-js/mdx';
3
3
  import '@standard-schema/spec';
4
4
  import 'unified';
@@ -13,6 +13,7 @@ import 'fumadocs-core/toc';
13
13
  import 'mdast';
14
14
  import 'mdx/types';
15
15
 
16
+ type VersionControlFn = (filePath: string) => Promise<Date | undefined>;
16
17
  interface LastModifiedPluginOptions {
17
18
  /**
18
19
  * Version control to obtain the last modified time.
@@ -21,9 +22,11 @@ interface LastModifiedPluginOptions {
21
22
  *
22
23
  * If you are using Vercel, please set `VERCEL_DEEP_CLONE` environment variable to `true`.
23
24
  *
25
+ * - A function: return the last modified time for given file path.
26
+ *
24
27
  * @defaultValue 'git'
25
28
  */
26
- versionControl?: 'git';
29
+ versionControl?: 'git' | VersionControlFn;
27
30
  /**
28
31
  * Filter the collections to include by names
29
32
  */
@@ -15,6 +15,14 @@ var ExtendTypes = `{
15
15
  }`;
16
16
  function lastModified(options = {}) {
17
17
  const { versionControl = "git", filter = () => true } = options;
18
+ let fn;
19
+ switch (versionControl) {
20
+ case "git":
21
+ fn = getGitTimestamp;
22
+ break;
23
+ default:
24
+ fn = versionControl;
25
+ }
18
26
  return {
19
27
  name: "last-modified",
20
28
  "index-file": {
@@ -40,9 +48,8 @@ function lastModified(options = {}) {
40
48
  doc: {
41
49
  async vfile(file) {
42
50
  if (!filter(this.collection.name)) return;
43
- if (versionControl === "git") {
44
- const timestamp = await getGitTimestamp(this.filePath);
45
- if (timestamp === void 0) return;
51
+ const timestamp = await fn(this.filePath);
52
+ if (timestamp !== void 0) {
46
53
  file.data["mdx-export"] ??= [];
47
54
  file.data["mdx-export"].push({
48
55
  name: "lastModified",
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, FC } from 'react';
2
2
  import { StandardSchemaV1 } from '@standard-schema/spec';
3
- import { D as DocCollection, a as DocsCollection } from '../core-B9ZoS6sA.js';
3
+ import { D as DocCollection, b as DocsCollection } from '../core-C3QZSdEx.js';
4
4
  import { CompiledMDXProperties } from '../index.js';
5
5
  import { InternalTypeConfig } from './types.js';
6
6
  import '@mdx-js/mdx';
@@ -1,5 +1,5 @@
1
1
  import * as fumadocs_core_source from 'fumadocs-core/source';
2
- import { i as CoreOptions, S as ServerOptions, D as DocCollection, a as DocsCollection, k as AsyncDocCollectionEntry, l as AsyncDocsCollectionEntry } from '../core-B9ZoS6sA.js';
2
+ import { C as CoreOptions, S as ServerOptions, D as DocCollection, b as DocsCollection, k as AsyncDocCollectionEntry, l as AsyncDocsCollectionEntry } from '../core-C3QZSdEx.js';
3
3
  import * as _standard_schema_spec from '@standard-schema/spec';
4
4
  import { FileInfo, InternalTypeConfig } from './types.js';
5
5
  import '@mdx-js/mdx';
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  buildMDX
3
- } from "../chunk-SLY7WXTX.js";
3
+ } from "../chunk-KOPLIEVQ.js";
4
4
  import {
5
5
  server
6
6
  } from "../chunk-5OBUOALK.js";
7
7
  import "../chunk-FBLMK4RS.js";
8
8
  import {
9
9
  buildConfig
10
- } from "../chunk-ZY6UZ7NH.js";
11
- import "../chunk-E5DJTSIM.js";
10
+ } from "../chunk-6RPNS75C.js";
11
+ import "../chunk-S7KOJHHO.js";
12
12
  import {
13
13
  createCore
14
- } from "../chunk-BEBCWQC7.js";
14
+ } from "../chunk-GB4W3YCZ.js";
15
15
  import "../chunk-WBIHDYMN.js";
16
16
  import {
17
17
  fumaMatter
@@ -1,5 +1,5 @@
1
1
  import 'fumadocs-core/source';
2
- export { k as AsyncDocCollectionEntry, l as AsyncDocsCollectionEntry, w as DocCollectionEntry, x as DocsCollectionEntry, v as MetaCollectionEntry, y as ServerCreate, S as ServerOptions, z as server, F as toFumadocsSource } from '../core-B9ZoS6sA.js';
2
+ export { k as AsyncDocCollectionEntry, l as AsyncDocsCollectionEntry, w as DocCollectionEntry, x as DocsCollectionEntry, v as MetaCollectionEntry, y as ServerCreate, S as ServerOptions, z as server, F as toFumadocsSource } from '../core-C3QZSdEx.js';
3
3
  import '@standard-schema/spec';
4
4
  import './types.js';
5
5
  import '@mdx-js/mdx';
@@ -1,5 +1,5 @@
1
1
  import { Plugin } from 'vite';
2
- import { I as IndexFilePluginOptions } from '../core-B9ZoS6sA.js';
2
+ import { I as IndexFilePluginOptions } from '../core-C3QZSdEx.js';
3
3
  import '@mdx-js/mdx';
4
4
  import '@standard-schema/spec';
5
5
  import 'unified';
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  buildConfig
3
- } from "../chunk-ZY6UZ7NH.js";
4
- import "../chunk-E5DJTSIM.js";
3
+ } from "../chunk-6RPNS75C.js";
4
+ import "../chunk-S7KOJHHO.js";
5
5
  import {
6
6
  createMdxLoader
7
- } from "../chunk-6NISOLQ6.js";
7
+ } from "../chunk-USWQVJWR.js";
8
8
  import {
9
9
  createMetaLoader
10
10
  } from "../chunk-TYJDYTKH.js";
11
11
  import {
12
12
  createIntegratedConfigLoader,
13
13
  toVite
14
- } from "../chunk-K6HCOGOX.js";
14
+ } from "../chunk-OLL7FM7W.js";
15
15
  import "../chunk-4JSFLXXT.js";
16
16
  import {
17
17
  ValidationError,
18
18
  _Defaults,
19
19
  createCore
20
- } from "../chunk-BEBCWQC7.js";
20
+ } from "../chunk-GB4W3YCZ.js";
21
21
  import {
22
22
  indexFile
23
- } from "../chunk-7UKSZSPY.js";
23
+ } from "../chunk-ED3ON275.js";
24
24
  import "../chunk-WBIHDYMN.js";
25
25
  import "../chunk-VWJKRQZR.js";
26
26
 
@@ -83,7 +83,7 @@ async function mdx(config, pluginOptions = {}) {
83
83
  };
84
84
  }
85
85
  async function postInstall(pluginOptions = {}) {
86
- const { loadConfig } = await import("../load-from-file-5HUQN36V.js");
86
+ const { loadConfig } = await import("../load-from-file-OZ5N7DXU.js");
87
87
  const core = createViteCore(applyDefaults(pluginOptions));
88
88
  await core.init({
89
89
  config: loadConfig(core, true)
@@ -1,6 +1,6 @@
1
1
  import { LoaderContext } from 'webpack';
2
- import { W as WebpackLoaderOptions } from '../index-CNOvhtOn.js';
3
- import '../core-B9ZoS6sA.js';
2
+ import { W as WebpackLoaderOptions } from '../index-RVIZxMZG.js';
3
+ import '../core-C3QZSdEx.js';
4
4
  import '@mdx-js/mdx';
5
5
  import '@standard-schema/spec';
6
6
  import 'unified';
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  getCore
3
- } from "../chunk-IQGEFL2B.js";
3
+ } from "../chunk-Q5OSGLJL.js";
4
4
  import {
5
5
  createMdxLoader
6
- } from "../chunk-6NISOLQ6.js";
6
+ } from "../chunk-USWQVJWR.js";
7
7
  import {
8
8
  createStandaloneConfigLoader,
9
9
  toWebpack
10
- } from "../chunk-K6HCOGOX.js";
10
+ } from "../chunk-OLL7FM7W.js";
11
11
  import "../chunk-4JSFLXXT.js";
12
- import "../chunk-BEBCWQC7.js";
12
+ import "../chunk-GB4W3YCZ.js";
13
13
  import "../chunk-WBIHDYMN.js";
14
14
  import "../chunk-VWJKRQZR.js";
15
15
 
@@ -1,6 +1,6 @@
1
1
  import { LoaderContext } from 'webpack';
2
- import { W as WebpackLoaderOptions } from '../index-CNOvhtOn.js';
3
- import '../core-B9ZoS6sA.js';
2
+ import { W as WebpackLoaderOptions } from '../index-RVIZxMZG.js';
3
+ import '../core-C3QZSdEx.js';
4
4
  import '@mdx-js/mdx';
5
5
  import '@standard-schema/spec';
6
6
  import 'unified';
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  getCore
3
- } from "../chunk-IQGEFL2B.js";
3
+ } from "../chunk-Q5OSGLJL.js";
4
4
  import {
5
5
  createMetaLoader
6
6
  } from "../chunk-TYJDYTKH.js";
7
7
  import {
8
8
  createStandaloneConfigLoader,
9
9
  toWebpack
10
- } from "../chunk-K6HCOGOX.js";
10
+ } from "../chunk-OLL7FM7W.js";
11
11
  import "../chunk-4JSFLXXT.js";
12
- import "../chunk-BEBCWQC7.js";
12
+ import "../chunk-GB4W3YCZ.js";
13
13
  import "../chunk-WBIHDYMN.js";
14
14
 
15
15
  // src/webpack/meta.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-mdx",
3
- "version": "14.0.1",
3
+ "version": "14.0.2",
4
4
  "description": "The built-in source for Fumadocs",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -16,8 +16,7 @@
16
16
  "./loader-meta": "./loader-meta.cjs",
17
17
  "./config": {
18
18
  "import": "./dist/config/index.js",
19
- "types": "./dist/config/index.d.ts",
20
- "require": "./dist/config/index.cjs"
19
+ "types": "./dist/config/index.d.ts"
21
20
  },
22
21
  "./next": {
23
22
  "import": "./dist/next/index.js",
@@ -26,8 +25,7 @@
26
25
  },
27
26
  "./vite": {
28
27
  "import": "./dist/vite/index.js",
29
- "types": "./dist/vite/index.d.ts",
30
- "require": "./dist/vite/index.cjs"
28
+ "types": "./dist/vite/index.d.ts"
31
29
  },
32
30
  ".": {
33
31
  "import": "./dist/index.js",
@@ -99,7 +97,7 @@
99
97
  "webpack": "^5.102.1",
100
98
  "@fumadocs/mdx-remote": "1.4.3",
101
99
  "eslint-config-custom": "0.0.0",
102
- "fumadocs-core": "16.0.13",
100
+ "fumadocs-core": "16.0.14",
103
101
  "tsconfig": "0.0.0"
104
102
  },
105
103
  "peerDependencies": {