fumadocs-mdx 14.0.3 → 14.1.0

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 (42) hide show
  1. package/dist/{build-mdx-W3233QBZ.js → build-mdx-RXJZQXGA.js} +2 -2
  2. package/dist/bun/index.d.ts +2 -2
  3. package/dist/bun/index.js +9 -9
  4. package/dist/{chunk-KOPLIEVQ.js → chunk-7W73RILB.js} +2 -1
  5. package/dist/{chunk-LPX7ZO66.js → chunk-DTFUANSF.js} +1 -1
  6. package/dist/{chunk-Q5OSGLJL.js → chunk-K7N6GD4M.js} +1 -1
  7. package/dist/{chunk-6RPNS75C.js → chunk-OLD35ARB.js} +43 -31
  8. package/dist/{chunk-WBIHDYMN.js → chunk-PW2AZGGD.js} +3 -4
  9. package/dist/{chunk-USWQVJWR.js → chunk-T6G5VOED.js} +21 -12
  10. package/dist/{chunk-DKA3EWZH.js → chunk-VITVHHR6.js} +88 -84
  11. package/dist/{chunk-GB4W3YCZ.js → chunk-VKSHE52K.js} +85 -35
  12. package/dist/{chunk-OLL7FM7W.js → chunk-WAAWFNDX.js} +18 -20
  13. package/dist/{chunk-FBLMK4RS.js → chunk-Y7ISNZ7X.js} +22 -16
  14. package/dist/{chunk-TYJDYTKH.js → chunk-ZAYZWFWP.js} +10 -6
  15. package/dist/config/index.d.ts +2 -2
  16. package/dist/config/index.js +6 -5
  17. package/dist/{core-C3QZSdEx.d.ts → core-X5ggQtBM.d.ts} +50 -41
  18. package/dist/index-BqkSNsGO.d.ts +8 -0
  19. package/dist/index.d.ts +2 -2
  20. package/dist/{load-from-file-OZ5N7DXU.js → load-from-file-FHW724YY.js} +2 -2
  21. package/dist/next/index.cjs +253 -202
  22. package/dist/next/index.d.ts +2 -2
  23. package/dist/next/index.js +22 -37
  24. package/dist/node/loader.js +5 -5
  25. package/dist/plugins/index-file.d.ts +2 -2
  26. package/dist/plugins/index-file.js +2 -2
  27. package/dist/plugins/json-schema.d.ts +2 -2
  28. package/dist/plugins/json-schema.js +4 -7
  29. package/dist/plugins/last-modified.d.ts +3 -3
  30. package/dist/plugins/last-modified.js +23 -15
  31. package/dist/runtime/browser.d.ts +2 -2
  32. package/dist/runtime/dynamic.d.ts +2 -2
  33. package/dist/runtime/dynamic.js +7 -7
  34. package/dist/runtime/server.d.ts +2 -2
  35. package/dist/vite/index.d.ts +2 -2
  36. package/dist/vite/index.js +19 -21
  37. package/dist/webpack/mdx.d.ts +1 -15
  38. package/dist/webpack/mdx.js +5 -5
  39. package/dist/webpack/meta.d.ts +1 -15
  40. package/dist/webpack/meta.js +5 -5
  41. package/package.json +13 -14
  42. package/dist/index-DG1I0CwF.d.ts +0 -8
@@ -1,10 +1,10 @@
1
1
  import { NextConfig } from 'next';
2
- import { I as IndexFilePluginOptions } from '../core-C3QZSdEx.js';
2
+ import { I as IndexFilePluginOptions } from '../core-X5ggQtBM.js';
3
3
  import '@mdx-js/mdx';
4
4
  import '@standard-schema/spec';
5
5
  import 'unified';
6
6
  import 'fumadocs-core/mdx-plugins';
7
- import 'zod';
7
+ import 'fumadocs-core/source/schema';
8
8
  import 'chokidar';
9
9
  import 'vfile';
10
10
  import 'fumadocs-core/source';
@@ -1,22 +1,21 @@
1
1
  import {
2
2
  loadConfig
3
- } from "../chunk-LPX7ZO66.js";
4
- import "../chunk-6RPNS75C.js";
3
+ } from "../chunk-DTFUANSF.js";
4
+ import "../chunk-OLD35ARB.js";
5
+ import "../chunk-S7KOJHHO.js";
5
6
  import {
6
7
  mdxLoaderGlob,
7
8
  metaLoaderGlob
8
9
  } from "../chunk-4JSFLXXT.js";
9
10
  import {
10
- ValidationError,
11
11
  _Defaults,
12
12
  createCore
13
- } from "../chunk-GB4W3YCZ.js";
14
- import "../chunk-S7KOJHHO.js";
13
+ } from "../chunk-VKSHE52K.js";
15
14
  import {
16
15
  indexFile
17
- } from "../chunk-DKA3EWZH.js";
16
+ } from "../chunk-VITVHHR6.js";
17
+ import "../chunk-PW2AZGGD.js";
18
18
  import "../chunk-VWJKRQZR.js";
19
- import "../chunk-WBIHDYMN.js";
20
19
 
21
20
  // src/next/index.ts
22
21
  import * as path from "path";
@@ -29,8 +28,10 @@ function createMDX(createOptions = {}) {
29
28
  void init(isDev, core);
30
29
  }
31
30
  return (nextConfig = {}) => {
31
+ const { configPath, outDir } = core.getOptions();
32
32
  const loaderOptions = {
33
- ...core.getOptions(),
33
+ configPath,
34
+ outDir,
34
35
  absoluteCompiledConfigPath: path.resolve(core.getCompiledConfigPath()),
35
36
  isDev
36
37
  };
@@ -108,7 +109,7 @@ async function init(dev, core) {
108
109
  await core.init({
109
110
  config: loadConfig(core, true)
110
111
  });
111
- await core.emitAndWrite();
112
+ await core.emit({ write: true });
112
113
  }
113
114
  async function devServer() {
114
115
  const { FSWatcher } = await import("chokidar");
@@ -119,11 +120,11 @@ async function init(dev, core) {
119
120
  ignored: [outDir]
120
121
  });
121
122
  watcher.add(configPath);
122
- for (const collection of core.getConfig().collectionList) {
123
- if (collection.type === "docs") {
124
- watcher.add(collection.docs.dir);
125
- watcher.add(collection.meta.dir);
126
- } else {
123
+ for (const collection of core.getCollections()) {
124
+ watcher.add(collection.dir);
125
+ }
126
+ for (const workspace of core.getWorkspaces().values()) {
127
+ for (const collection of workspace.getCollections()) {
127
128
  watcher.add(collection.dir);
128
129
  }
129
130
  }
@@ -157,7 +158,7 @@ async function postInstall(options) {
157
158
  await core.init({
158
159
  config: loadConfig(core, true)
159
160
  });
160
- await core.emitAndWrite();
161
+ await core.emit({ write: true });
161
162
  }
162
163
  function applyDefaults(options) {
163
164
  return {
@@ -167,28 +168,12 @@ function applyDefaults(options) {
167
168
  };
168
169
  }
169
170
  function createNextCore(options) {
170
- const core = createCore(
171
- {
172
- environment: "next",
173
- outDir: options.outDir,
174
- configPath: options.configPath
175
- },
176
- [options.index && indexFile(options.index)]
177
- );
178
- return {
179
- ...core,
180
- async emitAndWrite(...args) {
181
- try {
182
- await core.emitAndWrite(...args);
183
- } catch (err) {
184
- if (err instanceof ValidationError) {
185
- console.error(await err.toStringFormatted());
186
- } else {
187
- console.error(err);
188
- }
189
- }
190
- }
191
- };
171
+ return createCore({
172
+ environment: "next",
173
+ outDir: options.outDir,
174
+ configPath: options.configPath,
175
+ plugins: [options.index && indexFile(options.index)]
176
+ });
192
177
  }
193
178
  export {
194
179
  createMDX,
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  createMdxLoader
3
- } from "../chunk-USWQVJWR.js";
3
+ } from "../chunk-T6G5VOED.js";
4
4
  import {
5
5
  createMetaLoader
6
- } from "../chunk-TYJDYTKH.js";
6
+ } from "../chunk-ZAYZWFWP.js";
7
7
  import {
8
8
  createStandaloneConfigLoader,
9
9
  toNode
10
- } from "../chunk-OLL7FM7W.js";
10
+ } from "../chunk-WAAWFNDX.js";
11
11
  import "../chunk-4JSFLXXT.js";
12
12
  import {
13
13
  _Defaults,
14
14
  createCore
15
- } from "../chunk-GB4W3YCZ.js";
15
+ } from "../chunk-VKSHE52K.js";
16
+ import "../chunk-PW2AZGGD.js";
16
17
  import "../chunk-VWJKRQZR.js";
17
- import "../chunk-WBIHDYMN.js";
18
18
 
19
19
  // src/node/loader.ts
20
20
  var core = createCore({
@@ -1,9 +1,9 @@
1
- export { J as IndexFilePlugin, I as IndexFilePluginOptions, H as default } from '../core-C3QZSdEx.js';
1
+ export { H as IndexFilePlugin, I as IndexFilePluginOptions, F as default } from '../core-X5ggQtBM.js';
2
2
  import '@mdx-js/mdx';
3
3
  import '@standard-schema/spec';
4
4
  import 'unified';
5
5
  import 'fumadocs-core/mdx-plugins';
6
- import 'zod';
6
+ import 'fumadocs-core/source/schema';
7
7
  import 'chokidar';
8
8
  import 'vfile';
9
9
  import 'fumadocs-core/source';
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  indexFile
3
- } from "../chunk-DKA3EWZH.js";
3
+ } from "../chunk-VITVHHR6.js";
4
+ import "../chunk-PW2AZGGD.js";
4
5
  import "../chunk-VWJKRQZR.js";
5
- import "../chunk-WBIHDYMN.js";
6
6
  export {
7
7
  indexFile as default
8
8
  };
@@ -1,9 +1,9 @@
1
- import { j as Plugin } from '../core-C3QZSdEx.js';
1
+ import { i as Plugin } from '../core-X5ggQtBM.js';
2
2
  import '@mdx-js/mdx';
3
3
  import '@standard-schema/spec';
4
4
  import 'unified';
5
5
  import 'fumadocs-core/mdx-plugins';
6
- import 'zod';
6
+ import 'fumadocs-core/source/schema';
7
7
  import 'chokidar';
8
8
  import 'vfile';
9
9
  import 'fumadocs-core/source';
@@ -5,20 +5,17 @@ import path from "path";
5
5
  function jsonSchema({
6
6
  insert = false
7
7
  } = {}) {
8
- let config;
9
8
  function getSchemaPath(name) {
10
9
  return `json-schema/${name}.json`;
11
10
  }
12
11
  return {
13
- config(v) {
14
- config = v;
15
- },
16
12
  configureServer(server) {
13
+ const { outDir } = this.core.getOptions();
17
14
  if (!server.watcher || !insert) return;
18
15
  server.watcher.on("add", async (file) => {
19
16
  let parent;
20
17
  let match;
21
- for (const collection of config.collectionList) {
18
+ for (const collection of this.core.getCollections()) {
22
19
  if (collection.type === "meta" && collection.hasFile(file)) {
23
20
  match = collection;
24
21
  break;
@@ -39,7 +36,7 @@ function jsonSchema({
39
36
  }
40
37
  if ("$schema" in obj) return;
41
38
  const schemaPath = path.join(
42
- this.outDir,
39
+ outDir,
43
40
  getSchemaPath(parent ? `${parent.name}.meta` : match.name)
44
41
  );
45
42
  const updated = {
@@ -62,7 +59,7 @@ function jsonSchema({
62
59
  )
63
60
  });
64
61
  }
65
- for (const collection of config.collectionList) {
62
+ for (const collection of this.core.getCollections()) {
66
63
  if (collection.type === "docs") {
67
64
  if (collection.meta.schema instanceof z.ZodType) {
68
65
  onSchema(`${collection.name}.meta`, collection.meta.schema);
@@ -1,9 +1,9 @@
1
- import { j as Plugin } from '../core-C3QZSdEx.js';
1
+ import { i as Plugin } from '../core-X5ggQtBM.js';
2
2
  import '@mdx-js/mdx';
3
3
  import '@standard-schema/spec';
4
4
  import 'unified';
5
5
  import 'fumadocs-core/mdx-plugins';
6
- import 'zod';
6
+ import 'fumadocs-core/source/schema';
7
7
  import 'chokidar';
8
8
  import 'vfile';
9
9
  import 'fumadocs-core/source';
@@ -13,7 +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
+ type VersionControlFn = (filePath: string) => Promise<Date | null | undefined>;
17
17
  interface LastModifiedPluginOptions {
18
18
  /**
19
19
  * Version control to obtain the last modified time.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ident
3
- } from "../chunk-WBIHDYMN.js";
3
+ } from "../chunk-PW2AZGGD.js";
4
4
 
5
5
  // src/plugins/last-modified.ts
6
6
  import path from "path";
@@ -16,13 +16,6 @@ var ExtendTypes = `{
16
16
  function lastModified(options = {}) {
17
17
  const { versionControl = "git", filter = () => true } = options;
18
18
  let fn;
19
- switch (versionControl) {
20
- case "git":
21
- fn = getGitTimestamp;
22
- break;
23
- default:
24
- fn = versionControl;
25
- }
26
19
  return {
27
20
  name: "last-modified",
28
21
  "index-file": {
@@ -30,7 +23,7 @@ function lastModified(options = {}) {
30
23
  const lines = [];
31
24
  lines.push("{");
32
25
  lines.push(" DocData: {");
33
- for (const collection of this.core.getConfig().collectionList) {
26
+ for (const collection of this.core.getCollections()) {
34
27
  if (filter(collection.name)) {
35
28
  lines.push(ident(`${collection.name}: ${ExtendTypes},`, 2));
36
29
  }
@@ -45,11 +38,22 @@ function lastModified(options = {}) {
45
38
  options2.doc.passthroughs.push("lastModified");
46
39
  }
47
40
  },
41
+ config() {
42
+ const { workspace } = this.core.getOptions();
43
+ const cwd = workspace ? path.resolve(workspace.dir) : process.cwd();
44
+ switch (versionControl) {
45
+ case "git":
46
+ fn = (v) => getGitTimestamp(v, cwd);
47
+ break;
48
+ default:
49
+ fn = versionControl;
50
+ }
51
+ },
48
52
  doc: {
49
53
  async vfile(file) {
50
54
  if (!filter(this.collection.name)) return;
51
55
  const timestamp = await fn(this.filePath);
52
- if (timestamp !== void 0) {
56
+ if (timestamp) {
53
57
  file.data["mdx-export"] ??= [];
54
58
  file.data["mdx-export"].push({
55
59
  name: "lastModified",
@@ -60,21 +64,25 @@ function lastModified(options = {}) {
60
64
  }
61
65
  };
62
66
  }
63
- async function getGitTimestamp(file) {
67
+ async function getGitTimestamp(file, cwd) {
64
68
  const cached = cache.get(file);
65
69
  if (cached) return cached;
66
70
  const timePromise = (async () => {
67
71
  const out = await x(
68
72
  "git",
69
- ["log", "-1", '--pretty="%ai"', path.relative(process.cwd(), file)],
73
+ ["log", "-1", '--pretty="%ai"', path.relative(cwd, file)],
70
74
  {
71
- throwOnError: true
75
+ nodeOptions: {
76
+ cwd
77
+ }
72
78
  }
73
79
  );
74
- return new Date(out.stdout);
80
+ if (out.exitCode !== 0) return null;
81
+ const date = new Date(out.stdout);
82
+ return isNaN(date.getTime()) ? null : date;
75
83
  })();
76
84
  cache.set(file, timePromise);
77
- return timePromise.catch(() => void 0);
85
+ return timePromise;
78
86
  }
79
87
  export {
80
88
  lastModified as default
@@ -1,12 +1,12 @@
1
1
  import { ReactNode, FC } from 'react';
2
2
  import { StandardSchemaV1 } from '@standard-schema/spec';
3
- import { D as DocCollection, b as DocsCollection } from '../core-C3QZSdEx.js';
3
+ import { D as DocCollection, b as DocsCollection } from '../core-X5ggQtBM.js';
4
4
  import { CompiledMDXProperties } from '../index.js';
5
5
  import { InternalTypeConfig } from './types.js';
6
6
  import '@mdx-js/mdx';
7
7
  import 'unified';
8
8
  import 'fumadocs-core/mdx-plugins';
9
- import 'zod';
9
+ import 'fumadocs-core/source/schema';
10
10
  import 'chokidar';
11
11
  import 'vfile';
12
12
  import 'fumadocs-core/source';
@@ -1,11 +1,11 @@
1
1
  import * as fumadocs_core_source from 'fumadocs-core/source';
2
- import { C as CoreOptions, S as ServerOptions, D as DocCollection, b as DocsCollection, k as AsyncDocCollectionEntry, l as AsyncDocsCollectionEntry } from '../core-C3QZSdEx.js';
2
+ import { C as CoreOptions, S as ServerOptions, D as DocCollection, b as DocsCollection, j as AsyncDocCollectionEntry, k as AsyncDocsCollectionEntry } from '../core-X5ggQtBM.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';
6
6
  import 'unified';
7
7
  import 'fumadocs-core/mdx-plugins';
8
- import 'zod';
8
+ import 'fumadocs-core/source/schema';
9
9
  import 'chokidar';
10
10
  import 'vfile';
11
11
  import 'fumadocs-core/mdx-plugins/remark-structure';
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  buildMDX
3
- } from "../chunk-KOPLIEVQ.js";
3
+ } from "../chunk-7W73RILB.js";
4
4
  import {
5
5
  server
6
6
  } from "../chunk-5OBUOALK.js";
7
- import "../chunk-FBLMK4RS.js";
7
+ import "../chunk-Y7ISNZ7X.js";
8
8
  import {
9
9
  buildConfig
10
- } from "../chunk-6RPNS75C.js";
10
+ } from "../chunk-OLD35ARB.js";
11
+ import "../chunk-S7KOJHHO.js";
11
12
  import {
12
13
  createCore
13
- } from "../chunk-GB4W3YCZ.js";
14
- import "../chunk-S7KOJHHO.js";
14
+ } from "../chunk-VKSHE52K.js";
15
+ import "../chunk-PW2AZGGD.js";
15
16
  import {
16
17
  fumaMatter
17
18
  } from "../chunk-VWJKRQZR.js";
18
- import "../chunk-WBIHDYMN.js";
19
19
 
20
20
  // src/runtime/dynamic.ts
21
21
  import { executeMdx } from "@fumadocs/mdx-remote/client";
@@ -28,7 +28,7 @@ async function dynamic(configExports, coreOptions, serverOptions) {
28
28
  });
29
29
  const create = server(serverOptions);
30
30
  function getDocCollection(name) {
31
- const collection = core.getConfig().getCollection(name);
31
+ const collection = core.getCollection(name);
32
32
  if (!collection) return;
33
33
  if (collection.type === "docs") return collection.docs;
34
34
  else if (collection.type === "doc") return collection;
@@ -1,11 +1,11 @@
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-C3QZSdEx.js';
2
+ export { j as AsyncDocCollectionEntry, k as AsyncDocsCollectionEntry, v as DocCollectionEntry, w as DocsCollectionEntry, u as MetaCollectionEntry, x as ServerCreate, S as ServerOptions, y as server, z as toFumadocsSource } from '../core-X5ggQtBM.js';
3
3
  import '@standard-schema/spec';
4
4
  import './types.js';
5
5
  import '@mdx-js/mdx';
6
6
  import 'unified';
7
7
  import 'fumadocs-core/mdx-plugins';
8
- import 'zod';
8
+ import 'fumadocs-core/source/schema';
9
9
  import 'chokidar';
10
10
  import 'vfile';
11
11
  import 'fumadocs-core/mdx-plugins/remark-structure';
@@ -1,10 +1,10 @@
1
1
  import { Plugin } from 'vite';
2
- import { I as IndexFilePluginOptions } from '../core-C3QZSdEx.js';
2
+ import { I as IndexFilePluginOptions } from '../core-X5ggQtBM.js';
3
3
  import '@mdx-js/mdx';
4
4
  import '@standard-schema/spec';
5
5
  import 'unified';
6
6
  import 'fumadocs-core/mdx-plugins';
7
- import 'zod';
7
+ import 'fumadocs-core/source/schema';
8
8
  import 'chokidar';
9
9
  import 'vfile';
10
10
  import 'fumadocs-core/source';
@@ -1,28 +1,28 @@
1
+ import {
2
+ buildConfig
3
+ } from "../chunk-OLD35ARB.js";
4
+ import "../chunk-S7KOJHHO.js";
1
5
  import {
2
6
  createMdxLoader
3
- } from "../chunk-USWQVJWR.js";
7
+ } from "../chunk-T6G5VOED.js";
4
8
  import {
5
9
  createMetaLoader
6
- } from "../chunk-TYJDYTKH.js";
10
+ } from "../chunk-ZAYZWFWP.js";
7
11
  import {
8
12
  createIntegratedConfigLoader,
9
13
  toVite
10
- } from "../chunk-OLL7FM7W.js";
11
- import {
12
- buildConfig
13
- } from "../chunk-6RPNS75C.js";
14
+ } from "../chunk-WAAWFNDX.js";
14
15
  import "../chunk-4JSFLXXT.js";
15
16
  import {
16
17
  ValidationError,
17
18
  _Defaults,
18
19
  createCore
19
- } from "../chunk-GB4W3YCZ.js";
20
- import "../chunk-S7KOJHHO.js";
20
+ } from "../chunk-VKSHE52K.js";
21
21
  import {
22
22
  indexFile
23
- } from "../chunk-DKA3EWZH.js";
23
+ } from "../chunk-VITVHHR6.js";
24
+ import "../chunk-PW2AZGGD.js";
24
25
  import "../chunk-VWJKRQZR.js";
25
- import "../chunk-WBIHDYMN.js";
26
26
 
27
27
  // src/vite/index.ts
28
28
  import { mergeConfig } from "vite";
@@ -58,7 +58,7 @@ async function mdx(config, pluginOptions = {}) {
58
58
  });
59
59
  },
60
60
  async buildStart() {
61
- await core.emitAndWrite();
61
+ await core.emit({ write: true });
62
62
  },
63
63
  async configureServer(server) {
64
64
  await core.initServer({
@@ -83,12 +83,12 @@ async function mdx(config, pluginOptions = {}) {
83
83
  };
84
84
  }
85
85
  async function postInstall(pluginOptions = {}) {
86
- const { loadConfig } = await import("../load-from-file-OZ5N7DXU.js");
86
+ const { loadConfig } = await import("../load-from-file-FHW724YY.js");
87
87
  const core = createViteCore(applyDefaults(pluginOptions));
88
88
  await core.init({
89
89
  config: loadConfig(core, true)
90
90
  });
91
- await core.emitAndWrite();
91
+ await core.emit({ write: true });
92
92
  }
93
93
  function createViteCore({
94
94
  index,
@@ -96,19 +96,17 @@ function createViteCore({
96
96
  outDir
97
97
  }) {
98
98
  if (index === true) index = {};
99
- return createCore(
100
- {
101
- environment: "vite",
102
- configPath,
103
- outDir
104
- },
105
- [
99
+ return createCore({
100
+ environment: "vite",
101
+ configPath,
102
+ outDir,
103
+ plugins: [
106
104
  index && indexFile({
107
105
  ...index,
108
106
  target: index.target ?? "vite"
109
107
  })
110
108
  ]
111
- );
109
+ });
112
110
  }
113
111
  function applyDefaults(options) {
114
112
  return {
@@ -1,19 +1,5 @@
1
1
  import { LoaderContext } from 'webpack';
2
- import { W as WebpackLoaderOptions } from '../index-DG1I0CwF.js';
3
- import '../core-C3QZSdEx.js';
4
- import '@mdx-js/mdx';
5
- import '@standard-schema/spec';
6
- import 'unified';
7
- import 'fumadocs-core/mdx-plugins';
8
- import 'zod';
9
- import 'chokidar';
10
- import 'vfile';
11
- import 'fumadocs-core/source';
12
- import '../runtime/types.js';
13
- import 'fumadocs-core/mdx-plugins/remark-structure';
14
- import 'fumadocs-core/toc';
15
- import 'mdast';
16
- import 'mdx/types';
2
+ import { W as WebpackLoaderOptions } from '../index-BqkSNsGO.js';
17
3
 
18
4
  declare function loader(this: LoaderContext<WebpackLoaderOptions>, source: string, callback: LoaderContext<WebpackLoaderOptions>['callback']): Promise<void>;
19
5
 
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  getCore
3
- } from "../chunk-Q5OSGLJL.js";
3
+ } from "../chunk-K7N6GD4M.js";
4
4
  import {
5
5
  createMdxLoader
6
- } from "../chunk-USWQVJWR.js";
6
+ } from "../chunk-T6G5VOED.js";
7
7
  import {
8
8
  createStandaloneConfigLoader,
9
9
  toWebpack
10
- } from "../chunk-OLL7FM7W.js";
10
+ } from "../chunk-WAAWFNDX.js";
11
11
  import "../chunk-4JSFLXXT.js";
12
- import "../chunk-GB4W3YCZ.js";
12
+ import "../chunk-VKSHE52K.js";
13
+ import "../chunk-PW2AZGGD.js";
13
14
  import "../chunk-VWJKRQZR.js";
14
- import "../chunk-WBIHDYMN.js";
15
15
 
16
16
  // src/webpack/mdx.ts
17
17
  var instance;
@@ -1,19 +1,5 @@
1
1
  import { LoaderContext } from 'webpack';
2
- import { W as WebpackLoaderOptions } from '../index-DG1I0CwF.js';
3
- import '../core-C3QZSdEx.js';
4
- import '@mdx-js/mdx';
5
- import '@standard-schema/spec';
6
- import 'unified';
7
- import 'fumadocs-core/mdx-plugins';
8
- import 'zod';
9
- import 'chokidar';
10
- import 'vfile';
11
- import 'fumadocs-core/source';
12
- import '../runtime/types.js';
13
- import 'fumadocs-core/mdx-plugins/remark-structure';
14
- import 'fumadocs-core/toc';
15
- import 'mdast';
16
- import 'mdx/types';
2
+ import { W as WebpackLoaderOptions } from '../index-BqkSNsGO.js';
17
3
 
18
4
  declare function loader(this: LoaderContext<WebpackLoaderOptions>, source: string, callback: LoaderContext<WebpackLoaderOptions>['callback']): Promise<void>;
19
5
 
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  getCore
3
- } from "../chunk-Q5OSGLJL.js";
3
+ } from "../chunk-K7N6GD4M.js";
4
4
  import {
5
5
  createMetaLoader
6
- } from "../chunk-TYJDYTKH.js";
6
+ } from "../chunk-ZAYZWFWP.js";
7
7
  import {
8
8
  createStandaloneConfigLoader,
9
9
  toWebpack
10
- } from "../chunk-OLL7FM7W.js";
10
+ } from "../chunk-WAAWFNDX.js";
11
11
  import "../chunk-4JSFLXXT.js";
12
- import "../chunk-GB4W3YCZ.js";
13
- import "../chunk-WBIHDYMN.js";
12
+ import "../chunk-VKSHE52K.js";
13
+ import "../chunk-PW2AZGGD.js";
14
14
 
15
15
  // src/webpack/meta.ts
16
16
  var instance;