fumadocs-mdx 14.0.2 → 14.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.js CHANGED
@@ -1,7 +1,3 @@
1
- import {
2
- buildConfig
3
- } from "../chunk-6RPNS75C.js";
4
- import "../chunk-S7KOJHHO.js";
5
1
  import {
6
2
  createMdxLoader
7
3
  } from "../chunk-USWQVJWR.js";
@@ -12,13 +8,17 @@ import {
12
8
  createIntegratedConfigLoader,
13
9
  toBun
14
10
  } from "../chunk-OLL7FM7W.js";
11
+ import {
12
+ buildConfig
13
+ } from "../chunk-6RPNS75C.js";
15
14
  import "../chunk-4JSFLXXT.js";
16
15
  import {
17
16
  _Defaults,
18
17
  createCore
19
18
  } from "../chunk-GB4W3YCZ.js";
20
- import "../chunk-WBIHDYMN.js";
19
+ import "../chunk-S7KOJHHO.js";
21
20
  import "../chunk-VWJKRQZR.js";
21
+ import "../chunk-WBIHDYMN.js";
22
22
 
23
23
  // src/bun/index.ts
24
24
  import { pathToFileURL } from "url";
@@ -1,7 +1,7 @@
1
1
  import { C as CoreOptions } from './core-C3QZSdEx.js';
2
2
 
3
3
  interface WebpackLoaderOptions extends CoreOptions {
4
- compiledConfigPath: string;
4
+ absoluteCompiledConfigPath: string;
5
5
  isDev: boolean;
6
6
  }
7
7
 
@@ -948,7 +948,7 @@ function createMDX(createOptions = {}) {
948
948
  return (nextConfig = {}) => {
949
949
  const loaderOptions = {
950
950
  ...core.getOptions(),
951
- compiledConfigPath: core.getCompiledConfigPath(),
951
+ absoluteCompiledConfigPath: path5.resolve(core.getCompiledConfigPath()),
952
952
  isDev
953
953
  };
954
954
  const turbopack = {
@@ -1005,8 +1005,8 @@ function createMDX(createOptions = {}) {
1005
1005
  },
1006
1006
  {
1007
1007
  test: metaLoaderGlob,
1008
+ enforce: "pre",
1008
1009
  use: [
1009
- options.defaultLoaders.babel,
1010
1010
  {
1011
1011
  loader: "fumadocs-mdx/loader-meta",
1012
1012
  options: loaderOptions
@@ -2,7 +2,6 @@ import {
2
2
  loadConfig
3
3
  } from "../chunk-LPX7ZO66.js";
4
4
  import "../chunk-6RPNS75C.js";
5
- import "../chunk-S7KOJHHO.js";
6
5
  import {
7
6
  mdxLoaderGlob,
8
7
  metaLoaderGlob
@@ -12,11 +11,12 @@ import {
12
11
  _Defaults,
13
12
  createCore
14
13
  } from "../chunk-GB4W3YCZ.js";
14
+ import "../chunk-S7KOJHHO.js";
15
15
  import {
16
16
  indexFile
17
- } from "../chunk-ED3ON275.js";
18
- import "../chunk-WBIHDYMN.js";
17
+ } from "../chunk-DKA3EWZH.js";
19
18
  import "../chunk-VWJKRQZR.js";
19
+ import "../chunk-WBIHDYMN.js";
20
20
 
21
21
  // src/next/index.ts
22
22
  import * as path from "path";
@@ -31,7 +31,7 @@ function createMDX(createOptions = {}) {
31
31
  return (nextConfig = {}) => {
32
32
  const loaderOptions = {
33
33
  ...core.getOptions(),
34
- compiledConfigPath: core.getCompiledConfigPath(),
34
+ absoluteCompiledConfigPath: path.resolve(core.getCompiledConfigPath()),
35
35
  isDev
36
36
  };
37
37
  const turbopack = {
@@ -88,8 +88,8 @@ function createMDX(createOptions = {}) {
88
88
  },
89
89
  {
90
90
  test: metaLoaderGlob,
91
+ enforce: "pre",
91
92
  use: [
92
- options.defaultLoaders.babel,
93
93
  {
94
94
  loader: "fumadocs-mdx/loader-meta",
95
95
  options: loaderOptions
@@ -13,8 +13,8 @@ import {
13
13
  _Defaults,
14
14
  createCore
15
15
  } from "../chunk-GB4W3YCZ.js";
16
- import "../chunk-WBIHDYMN.js";
17
16
  import "../chunk-VWJKRQZR.js";
17
+ import "../chunk-WBIHDYMN.js";
18
18
 
19
19
  // src/node/loader.ts
20
20
  var core = createCore({
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  indexFile
3
- } from "../chunk-ED3ON275.js";
4
- import "../chunk-WBIHDYMN.js";
3
+ } from "../chunk-DKA3EWZH.js";
5
4
  import "../chunk-VWJKRQZR.js";
5
+ import "../chunk-WBIHDYMN.js";
6
6
  export {
7
7
  indexFile as default
8
8
  };
@@ -8,14 +8,14 @@ import "../chunk-FBLMK4RS.js";
8
8
  import {
9
9
  buildConfig
10
10
  } from "../chunk-6RPNS75C.js";
11
- import "../chunk-S7KOJHHO.js";
12
11
  import {
13
12
  createCore
14
13
  } from "../chunk-GB4W3YCZ.js";
15
- import "../chunk-WBIHDYMN.js";
14
+ import "../chunk-S7KOJHHO.js";
16
15
  import {
17
16
  fumaMatter
18
17
  } 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";
@@ -1,7 +1,3 @@
1
- import {
2
- buildConfig
3
- } from "../chunk-6RPNS75C.js";
4
- import "../chunk-S7KOJHHO.js";
5
1
  import {
6
2
  createMdxLoader
7
3
  } from "../chunk-USWQVJWR.js";
@@ -12,17 +8,21 @@ import {
12
8
  createIntegratedConfigLoader,
13
9
  toVite
14
10
  } from "../chunk-OLL7FM7W.js";
11
+ import {
12
+ buildConfig
13
+ } from "../chunk-6RPNS75C.js";
15
14
  import "../chunk-4JSFLXXT.js";
16
15
  import {
17
16
  ValidationError,
18
17
  _Defaults,
19
18
  createCore
20
19
  } from "../chunk-GB4W3YCZ.js";
20
+ import "../chunk-S7KOJHHO.js";
21
21
  import {
22
22
  indexFile
23
- } from "../chunk-ED3ON275.js";
24
- import "../chunk-WBIHDYMN.js";
23
+ } from "../chunk-DKA3EWZH.js";
25
24
  import "../chunk-VWJKRQZR.js";
25
+ import "../chunk-WBIHDYMN.js";
26
26
 
27
27
  // src/vite/index.ts
28
28
  import { mergeConfig } from "vite";
@@ -1,5 +1,5 @@
1
1
  import { LoaderContext } from 'webpack';
2
- import { W as WebpackLoaderOptions } from '../index-RVIZxMZG.js';
2
+ import { W as WebpackLoaderOptions } from '../index-DG1I0CwF.js';
3
3
  import '../core-C3QZSdEx.js';
4
4
  import '@mdx-js/mdx';
5
5
  import '@standard-schema/spec';
@@ -10,15 +10,15 @@ import {
10
10
  } from "../chunk-OLL7FM7W.js";
11
11
  import "../chunk-4JSFLXXT.js";
12
12
  import "../chunk-GB4W3YCZ.js";
13
- import "../chunk-WBIHDYMN.js";
14
13
  import "../chunk-VWJKRQZR.js";
14
+ import "../chunk-WBIHDYMN.js";
15
15
 
16
16
  // src/webpack/mdx.ts
17
17
  var instance;
18
18
  async function loader(source, callback) {
19
19
  const options = this.getOptions();
20
20
  this.cacheable(true);
21
- this.addDependency(options.compiledConfigPath);
21
+ this.addDependency(options.absoluteCompiledConfigPath);
22
22
  if (!instance) {
23
23
  instance = toWebpack(
24
24
  createMdxLoader(
@@ -1,5 +1,5 @@
1
1
  import { LoaderContext } from 'webpack';
2
- import { W as WebpackLoaderOptions } from '../index-RVIZxMZG.js';
2
+ import { W as WebpackLoaderOptions } from '../index-DG1I0CwF.js';
3
3
  import '../core-C3QZSdEx.js';
4
4
  import '@mdx-js/mdx';
5
5
  import '@standard-schema/spec';
@@ -17,7 +17,7 @@ var instance;
17
17
  async function loader(source, callback) {
18
18
  const options = this.getOptions();
19
19
  this.cacheable(true);
20
- this.addDependency(options.compiledConfigPath);
20
+ this.addDependency(options.absoluteCompiledConfigPath);
21
21
  if (!instance) {
22
22
  instance = toWebpack(
23
23
  createMetaLoader(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-mdx",
3
- "version": "14.0.2",
3
+ "version": "14.0.3",
4
4
  "description": "The built-in source for Fumadocs",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -97,7 +97,7 @@
97
97
  "webpack": "^5.102.1",
98
98
  "@fumadocs/mdx-remote": "1.4.3",
99
99
  "eslint-config-custom": "0.0.0",
100
- "fumadocs-core": "16.0.14",
100
+ "fumadocs-core": "16.0.15",
101
101
  "tsconfig": "0.0.0"
102
102
  },
103
103
  "peerDependencies": {
@@ -1,10 +1,10 @@
1
+ import {
2
+ fumaMatter
3
+ } from "./chunk-VWJKRQZR.js";
1
4
  import {
2
5
  createCodegen,
3
6
  ident
4
7
  } from "./chunk-WBIHDYMN.js";
5
- import {
6
- fumaMatter
7
- } from "./chunk-VWJKRQZR.js";
8
8
 
9
9
  // src/plugins/index-file.ts
10
10
  import path2 from "path";