vitepress-tuck 0.5.0 → 0.6.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.
- package/dist/index.js +7 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44,6 +44,12 @@ const autoComponentsPlugin = definePlugin((options) => ({
|
|
|
44
44
|
})] }
|
|
45
45
|
}));
|
|
46
46
|
//#endregion
|
|
47
|
+
//#region src/builtin-plugins/ssr-no-external-deps.ts
|
|
48
|
+
const ssrNoExternalDepsPlugin = definePlugin(() => ({
|
|
49
|
+
name: "vitepress-tuck:deps",
|
|
50
|
+
vite: { ssr: { noExternal: ["vitepress-plugin-toolkit"] } }
|
|
51
|
+
}));
|
|
52
|
+
//#endregion
|
|
47
53
|
//#region src/builtin-plugins/virtual-enhance-app.ts
|
|
48
54
|
let uuid = 0;
|
|
49
55
|
/**
|
|
@@ -131,10 +137,7 @@ function builtinPlugins(options) {
|
|
|
131
137
|
return [
|
|
132
138
|
virtualEnhanceAppPlugin(options.enhanceApp),
|
|
133
139
|
autoComponentsPlugin(options.components),
|
|
134
|
-
()
|
|
135
|
-
name: "vitepress-tuck:deps",
|
|
136
|
-
vite: { ssr: { noExternal: ["vitepress-plugin-toolkit"] } }
|
|
137
|
-
})
|
|
140
|
+
ssrNoExternalDepsPlugin()
|
|
138
141
|
];
|
|
139
142
|
}
|
|
140
143
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitepress-tuck",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"description": "Enhance vitepress configuration, provide plugins capability.",
|
|
6
6
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo/)",
|
|
7
7
|
"license": "MIT",
|