vue-micro-router 1.0.6 → 1.0.8

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.
@@ -296,9 +296,12 @@ if (watchMode) {
296
296
  }, 300);
297
297
  };
298
298
 
299
- // Watch recursively
299
+ const outputBasename = outputFile.split('/').pop();
300
+
300
301
  fsWatch(SCAN_PATH, { recursive: true }, (event, filename) => {
301
302
  if (!filename) return;
303
+ // Skip output file to prevent infinite loop
304
+ if (filename.endsWith(outputBasename)) return;
302
305
  const ext = extname(filename);
303
306
  if (ext === '.vue' || ext === '.ts') regenerate();
304
307
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-micro-router",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "description": "Mobile-app-style navigation for Vue 3 — animated page stacks, modal dialogs, HUD controls. No URL routing.",
6
6
  "author": {