@navigate-ai/vite 0.1.29 → 0.1.31
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/ClippyVitePlugin.js +7 -5
- package/package.json +1 -1
package/dist/ClippyVitePlugin.js
CHANGED
|
@@ -50,11 +50,13 @@ function generatePolicyFromFiles(files) {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
for
|
|
54
|
-
|
|
55
|
-
|
|
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()) {
|