@uni-helper/vite-plugin-uni-pages 0.2.12 → 0.2.13

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
@@ -616,7 +616,7 @@ function VitePluginUniPages(userOptions = {}) {
616
616
  await restart();
617
617
  }
618
618
  if (config.build.watch)
619
- ctx.setupWatcher(chokidar__default.watch(ctx.options.dirs));
619
+ ctx.setupWatcher(chokidar__default.watch([...ctx.options.dirs, ...ctx.options.subPackages]));
620
620
  }
621
621
  },
622
622
  // Applet do not support custom route block, so we need to remove the route block here
package/dist/index.d.cts CHANGED
@@ -5,8 +5,8 @@ import Debug from 'debug';
5
5
  import { SFCBlock, SFCDescriptor } from '@vue/compiler-sfc';
6
6
 
7
7
  interface EasyCom {
8
- autoscan: boolean;
9
- custom: Record<string, string>;
8
+ autoscan?: boolean;
9
+ custom?: Record<string, string>;
10
10
  }
11
11
 
12
12
  type RGBColor = `rgb(${number}, ${number}, ${number})`;
package/dist/index.d.mts CHANGED
@@ -5,8 +5,8 @@ import Debug from 'debug';
5
5
  import { SFCBlock, SFCDescriptor } from '@vue/compiler-sfc';
6
6
 
7
7
  interface EasyCom {
8
- autoscan: boolean;
9
- custom: Record<string, string>;
8
+ autoscan?: boolean;
9
+ custom?: Record<string, string>;
10
10
  }
11
11
 
12
12
  type RGBColor = `rgb(${number}, ${number}, ${number})`;
package/dist/index.d.ts CHANGED
@@ -5,8 +5,8 @@ import Debug from 'debug';
5
5
  import { SFCBlock, SFCDescriptor } from '@vue/compiler-sfc';
6
6
 
7
7
  interface EasyCom {
8
- autoscan: boolean;
9
- custom: Record<string, string>;
8
+ autoscan?: boolean;
9
+ custom?: Record<string, string>;
10
10
  }
11
11
 
12
12
  type RGBColor = `rgb(${number}, ${number}, ${number})`;
package/dist/index.mjs CHANGED
@@ -601,7 +601,7 @@ function VitePluginUniPages(userOptions = {}) {
601
601
  await restart();
602
602
  }
603
603
  if (config.build.watch)
604
- ctx.setupWatcher(chokidar.watch(ctx.options.dirs));
604
+ ctx.setupWatcher(chokidar.watch([...ctx.options.dirs, ...ctx.options.subPackages]));
605
605
  }
606
606
  },
607
607
  // Applet do not support custom route block, so we need to remove the route block here
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.12",
4
+ "version": "0.2.13",
5
5
  "description": "File system based routing for uni-app applications using Vite",
6
6
  "author": "KeJun",
7
7
  "license": "MIT",