@volpe/astro-svelte-spa 0.1.4 → 0.1.5

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.
Files changed (2) hide show
  1. package/index.js +2 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5,7 +5,6 @@ const VIRTUAL_MODULE_ID = "virtual:svelte-routes";
5
5
  const RESOLVED_VIRTUAL_MODULE_ID = "\0" + VIRTUAL_MODULE_ID;
6
6
 
7
7
  const VIRTUAL_SPA_ID = "virtual:svelte-spa";
8
- const RESOLVED_VIRTUAL_SPA_ID = "\0" + VIRTUAL_SPA_ID;
9
8
 
10
9
  /**
11
10
  * @typedef {Object} RouteNode
@@ -354,7 +353,7 @@ export function plugin(options = {}) {
354
353
  return RESOLVED_VIRTUAL_MODULE_ID;
355
354
  }
356
355
  if (id === VIRTUAL_SPA_ID) {
357
- return RESOLVED_VIRTUAL_SPA_ID;
356
+ return VIRTUAL_SPA_ID;
358
357
  }
359
358
  },
360
359
 
@@ -362,7 +361,7 @@ export function plugin(options = {}) {
362
361
  if (id === RESOLVED_VIRTUAL_MODULE_ID) {
363
362
  return generateRoutesModule(pagesDir, basePath);
364
363
  }
365
- if (id === RESOLVED_VIRTUAL_SPA_ID) {
364
+ if (id === VIRTUAL_SPA_ID) {
366
365
  return generateAppComponent();
367
366
  }
368
367
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volpe/astro-svelte-spa",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Vite plugin for file-based routing with svelte5-router in Astro",
5
5
  "type": "module",
6
6
  "main": "index.js",