@navigate-ai/vite 0.1.28 → 0.1.30

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.
@@ -50,11 +50,13 @@ function generatePolicyFromFiles(files) {
50
50
  }
51
51
  }
52
52
  }
53
- for (const sf of graph.getAllFiles()) {
54
- if (!routeFiles.has(sf.filePath)) {
55
- sf.components = [];
56
- }
57
- }
53
+ // DISABLED: Pruning was too aggressive for React Router apps with central config
54
+ // Files that aren't directly linked to routes were losing their components
55
+ // for (const sf of graph.getAllFiles()) {
56
+ // if (!routeFiles.has(sf.filePath)) {
57
+ // sf.components = []
58
+ // }
59
+ // }
58
60
  // Debug: Check files after pruning
59
61
  console.log(`[Clippy Debug] Files after pruning (routeFiles: ${routeFiles.size}):`);
60
62
  for (const file of graph.getAllFiles()) {
@@ -90,6 +92,8 @@ export function clippyVitePlugin(options) {
90
92
  const cleanId = id.split('?')[0];
91
93
  if (!/\.[jt]sx?$/.test(cleanId))
92
94
  return null;
95
+ if (cleanId.includes('node_modules'))
96
+ return null;
93
97
  // Process file: extract metadata and inject IDs in one pass
94
98
  const result = processFile(source, cleanId);
95
99
  // Accumulate metadata for policy generation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navigate-ai/vite",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",