@void/svelte 1.4.0 → 1.5.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/plugin.d.mts +0 -4
- package/dist/plugin.mjs +4 -8
- package/package.json +6 -6
package/dist/plugin.d.mts
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
2
2
|
import { Plugin } from "vite";
|
|
3
|
-
//#region src/plugin-pages.d.ts
|
|
4
3
|
type PrefetchConfig = {
|
|
5
4
|
hoverDelay?: number;
|
|
6
5
|
cacheFor?: number | string | [string, string];
|
|
7
6
|
};
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/plugin.d.ts
|
|
10
7
|
export type VoidSvelteOptions = Readonly<{
|
|
11
8
|
svelte?: Parameters<typeof svelte>[0];
|
|
12
9
|
viewTransitions?: boolean;
|
|
13
10
|
prefetch?: PrefetchConfig;
|
|
14
11
|
}>;
|
|
15
12
|
export declare function voidSvelte(options?: VoidSvelteOptions): Array<Plugin>;
|
|
16
|
-
//#endregion
|
|
17
13
|
export {};
|
package/dist/plugin.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import nodePath from "node:path";
|
|
|
5
5
|
import { preprocess } from "svelte/compiler";
|
|
6
6
|
import { normalizePath } from "vite";
|
|
7
7
|
import { ISLANDS_CLIENT_ENTRY_ID, ISLANDS_RENDERER_ID, computePagesNeedingClientJS, editIslandSource, findIslandImports, findStaticCssImports, hasIslandPages, islandStylesPlugin, recordIslandStyles, recordedIslandStyles, resolveSpecifier, rewriteCssImportForVirtualModule, watchPagesForRescan } from "void/pages-islands-plugin";
|
|
8
|
-
|
|
8
|
+
// ../../node_modules/.pnpm/pathslash@0.1.0/node_modules/pathslash/dist/index.mjs
|
|
9
9
|
const BACKSLASH_RE = /\\/g;
|
|
10
10
|
const isWindows = process.platform === "win32";
|
|
11
11
|
/**
|
|
@@ -43,8 +43,7 @@ const posix = { ...nodePath.posix };
|
|
|
43
43
|
posix.posix = win32.posix = posix;
|
|
44
44
|
posix.win32 = win32.win32 = win32;
|
|
45
45
|
const { basename, delimiter, dirname, extname, format, isAbsolute, join, matchesGlob, normalize, parse, relative, resolve, sep, toNamespacedPath } = isWindows ? win32 : posix;
|
|
46
|
-
|
|
47
|
-
//#region src/plugin-islands.ts
|
|
46
|
+
// src/plugin-islands.ts
|
|
48
47
|
const COMPONENT_EXTENSIONS = [
|
|
49
48
|
".svelte",
|
|
50
49
|
".ts",
|
|
@@ -327,8 +326,7 @@ initIslands(islands, hydrateIsland);
|
|
|
327
326
|
`);
|
|
328
327
|
return lines.join("\n");
|
|
329
328
|
}
|
|
330
|
-
|
|
331
|
-
//#region src/plugin-pages.ts
|
|
329
|
+
// src/plugin-pages.ts
|
|
332
330
|
const CLIENT_ENTRY_ID = "virtual:void-pages-client";
|
|
333
331
|
const SVELTE_OPTIMIZE_DEPS = {
|
|
334
332
|
exclude: ["@void/svelte"],
|
|
@@ -528,8 +526,7 @@ commitInitialRender();
|
|
|
528
526
|
appEl.setAttribute("data-hydrated", "true");
|
|
529
527
|
`;
|
|
530
528
|
}
|
|
531
|
-
|
|
532
|
-
//#region src/plugin.ts
|
|
529
|
+
// src/plugin.ts
|
|
533
530
|
function voidSvelte(options) {
|
|
534
531
|
const root = process.cwd();
|
|
535
532
|
const pagesDir = resolvePagesDir(root);
|
|
@@ -543,5 +540,4 @@ function voidSvelte(options) {
|
|
|
543
540
|
...islandsPlugin(pagesDir, { root })
|
|
544
541
|
];
|
|
545
542
|
}
|
|
546
|
-
//#endregion
|
|
547
543
|
export { voidSvelte };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@void/svelte",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Svelte pages, server rendering, forms, and navigation for Void.",
|
|
5
5
|
"homepage": "https://void.cloud",
|
|
6
6
|
"bugs": {
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
"@sveltejs/vite-plugin-svelte": "^7.3.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/node": "^26.6.
|
|
41
|
+
"@types/node": "^26.6.6",
|
|
42
42
|
"pathslash": "^0.1.0",
|
|
43
43
|
"svelte": "^5.57.2",
|
|
44
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@1.
|
|
45
|
-
"vite-plus": "1.
|
|
46
|
-
"void": "1.
|
|
44
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@1.4.0",
|
|
45
|
+
"vite-plus": "1.4.0",
|
|
46
|
+
"void": "1.5.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"svelte": "^5.0.0",
|
|
50
50
|
"vite": "^8.0.0",
|
|
51
|
-
"void": "1.
|
|
51
|
+
"void": "1.5.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "vp pack",
|