fumadocs-mdx 14.2.0 → 14.2.1
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/vite/index.js +14 -11
- package/package.json +1 -1
package/dist/vite/index.js
CHANGED
|
@@ -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:
|
|
61
|
-
|
|
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
|
},
|