GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Metadata-only config loads run `resolveConfig`, which reads `node_modules/.modules.yaml`; cached tasks that run `vp`, `oxlint` or `oxfmt` miss after every reinstall · Issue #2845 · voidzero-dev/vite-plus Open Labels DescriptionDescribe the bugEvery metadata read of Under Vite Task this is a cache bug. pnpm rewrites Stack, from an
The only line that differs between two installs of the same lockfile: - "prunedAt": "Mon, 28 Sep 2026 12:55:07 GMT", + "prunedAt": "Mon, 28 Sep 2026 12:58:26 GMT", ReproductionThree files. // package.json { "name": "probe", "private": true, "type": "module", "packageManager": "[email protected]", "devDependencies": { "vite-plus": "1.0.0" } } // vite.config.ts import { defineConfig } from 'vite-plus'; export default defineConfig({ fmt: {}, run: { tasks: { // A cached task whose process tree runs a `vp` built-in. fmt: { command: "sh -c 'vp fmt --check src'", cache: { input: [{ auto: true }], output: [] }, }, }, }, }); // src/a.ts export const a = 1; Steps to reproducevp install export VITE_CACHE_PATH="$PWD/.task-cache" # keep the task cache outside node_modules vp run fmt # executes vp run fmt # ◉ cache hit, replaying rm -rf node_modules && vp install # same lockfile, same versions vp run fmt # ○ cache miss: 'node_modules/.modules.yaml' modified Replacing the two Suggested fixLoad metadata with Vite's public // packages/cli/src/resolve-vite-config.ts export async function resolveViteConfig(cwd: string, options?: ResolveViteConfigOptions) { const { loadConfigFromFile } = await import('./index.js'); return withConfigMetadataResolution(async () => { let configFile: string | undefined; if (options?.traverseUp && !hasViteConfig(cwd)) { const workspaceRoot = findWorkspaceRoot(cwd); if (workspaceRoot) configFile = findViteConfigUp(path.dirname(cwd), workspaceRoot); } const result = await loadConfigFromFile( { command: 'build', mode: 'production', isSsrBuild: false, isPreview: false }, configFile, cwd, ); return result ? { ...result.config, configFile: result.path } : { configFile: undefined }; }); } Two notes:
We have run exactly this as pnpm patches of Related: #2698 (the same loads happen up to 8× per System InfoUsed Package Managerpnpm LogsValidations
Activity
MetadataMetadataAssigneesLabelsTypeFieldsPriority None yet ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |