fumadocs-mdx 14.2.0 → 14.2.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 (2) hide show
  1. package/dist/vite/index.js +14 -11
  2. package/package.json +6 -2
@@ -26,12 +26,6 @@ import "../chunk-VWJKRQZR.js";
26
26
 
27
27
  // src/vite/index.ts
28
28
  import { mergeConfig } from "vite";
29
- var FumadocsDeps = [
30
- "fumadocs-core",
31
- "fumadocs-ui",
32
- "fumadocs-openapi",
33
- "@fumadocs/base-ui"
34
- ];
35
29
  async function mdx(config, pluginOptions = {}) {
36
30
  const options = applyDefaults(pluginOptions);
37
31
  const core = createViteCore(options);
@@ -53,12 +47,21 @@ async function mdx(config, pluginOptions = {}) {
53
47
  config(config2) {
54
48
  if (!options.updateViteConfig) return config2;
55
49
  return mergeConfig(config2, {
56
- optimizeDeps: {
57
- exclude: FumadocsDeps
58
- },
59
50
  resolve: {
60
- noExternal: FumadocsDeps,
61
- dedupe: FumadocsDeps
51
+ noExternal: [
52
+ "fumadocs-core",
53
+ "fumadocs-ui",
54
+ "fumadocs-openapi",
55
+ "@fumadocs/base-ui",
56
+ "@fumadocs/ui"
57
+ ],
58
+ // only dedupe for public, non-transitive libs
59
+ dedupe: [
60
+ "fumadocs-core",
61
+ "fumadocs-ui",
62
+ "fumadocs-openapi",
63
+ "@fumadocs/base-ui"
64
+ ]
62
65
  }
63
66
  });
64
67
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-mdx",
3
- "version": "14.2.0",
3
+ "version": "14.2.2",
4
4
  "description": "The built-in source for Fumadocs",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -96,7 +96,7 @@
96
96
  "webpack": "^5.104.1",
97
97
  "@fumadocs/mdx-remote": "1.4.3",
98
98
  "eslint-config-custom": "0.0.0",
99
- "fumadocs-core": "16.3.1",
99
+ "fumadocs-core": "16.3.2",
100
100
  "tsconfig": "0.0.0"
101
101
  },
102
102
  "peerDependencies": {
@@ -104,12 +104,16 @@
104
104
  "fumadocs-core": "^15.0.0 || ^16.0.0",
105
105
  "next": "^15.3.0 || ^16.0.0",
106
106
  "react": "*",
107
+ "@types/react": "*",
107
108
  "vite": "6.x.x || 7.x.x"
108
109
  },
109
110
  "peerDependenciesMeta": {
110
111
  "react": {
111
112
  "optional": true
112
113
  },
114
+ "@types/react": {
115
+ "optional": true
116
+ },
113
117
  "next": {
114
118
  "optional": true
115
119
  },