@void/svelte 0.8.0 → 0.8.2

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/dist/plugin.mjs +13 -9
  2. package/package.json +3 -3
package/dist/plugin.mjs CHANGED
@@ -416,6 +416,15 @@ initIslands(islands, hydrateIsland);
416
416
  //#region src/plugin-pages.ts
417
417
  const RENDERER_ID = "virtual:void-pages-renderer";
418
418
  const CLIENT_ENTRY_ID = "virtual:void-pages-client";
419
+ const SVELTE_OPTIMIZE_DEPS = {
420
+ exclude: ["@void/svelte"],
421
+ include: [
422
+ "svelte",
423
+ "svelte/store",
424
+ "svelte/internal",
425
+ "svelte/internal/client"
426
+ ]
427
+ };
419
428
  /** Check if the pages directory has any non-island Svelte page files. */
420
429
  function hasNonIslandPages(dir) {
421
430
  try {
@@ -498,15 +507,10 @@ function pagesPlugin(pagesDir, options) {
498
507
  if (!existsSync(pagesDir)) return;
499
508
  if (env.command === "serve") {
500
509
  isDev = true;
501
- return { optimizeDeps: {
502
- exclude: ["@void/svelte"],
503
- include: [
504
- "svelte",
505
- "svelte/store",
506
- "svelte/internal",
507
- "svelte/internal/client"
508
- ]
509
- } };
510
+ return {
511
+ optimizeDeps: SVELTE_OPTIMIZE_DEPS,
512
+ environments: { void_worker: { optimizeDeps: { exclude: ["@void/svelte"] } } }
513
+ };
510
514
  }
511
515
  if (!hasNonIslandPages(pagesDir)) return;
512
516
  return { build: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@void/svelte",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/voidzero-dev/void.git",
@@ -44,12 +44,12 @@
44
44
  "svelte": "^5.55.5",
45
45
  "vite": "npm:@voidzero-dev/vite-plus-core@0.1.20",
46
46
  "vite-plus": "^0.1.20",
47
- "void": "0.8.0"
47
+ "void": "0.8.2"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "svelte": "^5.0.0",
51
51
  "vite": "^8.0.0",
52
- "void": "0.8.0"
52
+ "void": "0.8.2"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "vp pack",