@void/svelte 1.1.12 → 1.2.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.mjs +9 -1
- package/package.json +5 -5
package/dist/plugin.mjs
CHANGED
|
@@ -405,7 +405,15 @@ function pagesPlugin(pagesDir, options) {
|
|
|
405
405
|
const normalizedPath = normalizePath(path);
|
|
406
406
|
if (normalizedPath !== normalizedPagesDir && !normalizedPath.startsWith(normalizedPagesDir + "/")) return;
|
|
407
407
|
if (event === "change" && !normalizedPath.endsWith(".md")) return;
|
|
408
|
-
|
|
408
|
+
try {
|
|
409
|
+
await runRescan();
|
|
410
|
+
} catch (error) {
|
|
411
|
+
server.config.logger.error(error instanceof Error ? error.message : String(error), {
|
|
412
|
+
error: error instanceof Error ? error : void 0,
|
|
413
|
+
timestamp: true
|
|
414
|
+
});
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
409
417
|
invalidatePageModules(server);
|
|
410
418
|
};
|
|
411
419
|
server.watcher.on("add", (path) => handlePagesChange(path, "add"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@void/svelte",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Svelte pages, server rendering, forms, and navigation for Void.",
|
|
5
5
|
"homepage": "https://void.cloud",
|
|
6
6
|
"bugs": {
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"@types/node": "^26.6.5",
|
|
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.3.0",
|
|
45
|
+
"vite-plus": "1.3.0",
|
|
46
|
+
"void": "1.2.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"svelte": "^5.0.0",
|
|
50
50
|
"vite": "^8.0.0",
|
|
51
|
-
"void": "1.
|
|
51
|
+
"void": "1.2.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "vp pack",
|