@soubiran/vite 0.6.2 → 0.6.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/index.mjs +4 -1
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { a as vueIncludePatterns, i as markdownExtensionRE, n as toUrl, r as componentIncludePatterns, t as getUri } from "./utils-DYsc-HAW.mjs";
|
|
2
2
|
import { createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
3
|
+
import { cloudflare } from "@cloudflare/vite-plugin";
|
|
3
4
|
import ui from "@nuxt/ui/vite";
|
|
4
5
|
import soubiranComposablesImports from "@soubiran/ui/imports";
|
|
5
6
|
import soubiranResolver from "@soubiran/ui/resolver";
|
|
@@ -10,7 +11,7 @@ import matter from "gray-matter";
|
|
|
10
11
|
import fonts from "unplugin-fonts/vite";
|
|
11
12
|
import icons from "unplugin-icons/vite";
|
|
12
13
|
import markdown from "unplugin-vue-markdown/vite";
|
|
13
|
-
import router from "
|
|
14
|
+
import router from "vue-router/vite";
|
|
14
15
|
import { joinURL, withoutTrailingSlash } from "ufo";
|
|
15
16
|
import { Buffer } from "node:buffer";
|
|
16
17
|
import { basename, dirname, join, resolve } from "node:path";
|
|
@@ -909,6 +910,7 @@ function factory(options) {
|
|
|
909
910
|
];
|
|
910
911
|
if (options.router !== false) imports.push("vue-router");
|
|
911
912
|
plugins.push(ui({
|
|
913
|
+
router: options.router !== false,
|
|
912
914
|
autoImport: {
|
|
913
915
|
dts: "src/auto-imports.d.ts",
|
|
914
916
|
dirs: ["src/utils", "src/composables"],
|
|
@@ -957,6 +959,7 @@ function factory(options) {
|
|
|
957
959
|
if (options.markdown !== false) plugins.push(raw_markdown_default());
|
|
958
960
|
if (options.sitemap !== false) plugins.push(sitemap_default({ hostname: options.sitemap?.hostname || options.hostname }));
|
|
959
961
|
plugins.push(promise_default());
|
|
962
|
+
plugins.push(cloudflare());
|
|
960
963
|
return plugins;
|
|
961
964
|
}
|
|
962
965
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soubiran/vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.3",
|
|
5
5
|
"author": "Estéban Soubiran <esteban@soubiran.dev>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/Barbapapazes",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
+
"@cloudflare/vite-plugin": "^1.35.0",
|
|
34
35
|
"@nuxt/ui": "4.5.0",
|
|
35
36
|
"@shikijs/markdown-it": "^4.0.2",
|
|
36
37
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
"@types/node": "^24.12.0",
|
|
40
41
|
"@unhead/vue": "^2.1.12",
|
|
41
42
|
"@unpic/placeholder": "^0.1.2",
|
|
42
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
43
|
+
"@vitejs/plugin-vue": "^6.0.6",
|
|
43
44
|
"ansis": "^4.2.0",
|
|
44
45
|
"fs-extra": "^11.3.4",
|
|
45
46
|
"gray-matter": "^4.0.3",
|
|
@@ -55,14 +56,13 @@
|
|
|
55
56
|
"typescript": "^5.9.3",
|
|
56
57
|
"ufo": "^1.6.3",
|
|
57
58
|
"unhead": "^2.1.12",
|
|
58
|
-
"unplugin-fonts": "^
|
|
59
|
+
"unplugin-fonts": "^2.0.0",
|
|
59
60
|
"unplugin-icons": "^23.0.1",
|
|
60
61
|
"unplugin-vue-markdown": "^30.0.0",
|
|
61
|
-
"
|
|
62
|
-
"vite": "^8.0.1",
|
|
62
|
+
"vite": "^8.0.10",
|
|
63
63
|
"vite-ssg": "^28.3.0",
|
|
64
|
-
"vue-router": "^
|
|
65
|
-
"@soubiran/ui": "0.6.
|
|
64
|
+
"vue-router": "^5.0.6",
|
|
65
|
+
"@soubiran/ui": "0.6.3"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"tsdown": "^0.21.4"
|