// vite.config.js // Problem 2: Vite Aggressively Caches The Wrong Stuff import { defineConfig } from "vite"; export default defineConfig({ cacheDir: "node_modules/.vite", optimizeDeps: { force: true, // Supposed to rebuild... doesn't include: ["@my/local-lib"] // Gets stuck on old version } }); // The "fix" that shouldn't be necessary: // rm -rf node_modules/.vite && vite --force // Even worse with file: dependencies: // package.json: "@my/local-lib": "file:../local-lib" // Vite caches the symlink resolution, not the actual files