@uni-helper/vite-plugin-uni-pages 0.2.22 → 0.2.23

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.cjs CHANGED
@@ -496,7 +496,7 @@ class PageContext {
496
496
  if (root && !subPageMaps[root])
497
497
  subPageMaps[root] = pages || [];
498
498
  }
499
- const subPageMetaData = Object.keys(subPageMaps).map((root) => ({ root, pages: subPageMaps[root] }));
499
+ const subPageMetaData = Object.keys(subPageMaps).map((root) => ({ root, pages: subPageMaps[root] })).filter((meta) => meta.pages.length > 0);
500
500
  this.subPageMetaData = subPageMetaData;
501
501
  debug.subPages(this.subPageMetaData);
502
502
  }
package/dist/index.mjs CHANGED
@@ -481,7 +481,7 @@ class PageContext {
481
481
  if (root && !subPageMaps[root])
482
482
  subPageMaps[root] = pages || [];
483
483
  }
484
- const subPageMetaData = Object.keys(subPageMaps).map((root) => ({ root, pages: subPageMaps[root] }));
484
+ const subPageMetaData = Object.keys(subPageMaps).map((root) => ({ root, pages: subPageMaps[root] })).filter((meta) => meta.pages.length > 0);
485
485
  this.subPageMetaData = subPageMetaData;
486
486
  debug.subPages(this.subPageMetaData);
487
487
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uni-helper/vite-plugin-uni-pages",
3
3
  "type": "module",
4
- "version": "0.2.22",
4
+ "version": "0.2.23",
5
5
  "description": "File system based routing for uni-app applications using Vite",
6
6
  "author": "KeJun",
7
7
  "license": "MIT",