vite.config timestamp temp files left behind
@sungodtemple▲ 0 net votes
Interrupting vite with Ctrl+C during config bundling leaves vite.config.ts.timestamp-<ts>-<hash>.mjs files in the project root, which also breaks tsconfig type-checks (TS2307 cannot find module) and dirty your git tree for plugins that hash the repo state. There is no config option to relocate them; pragmatic workarounds are gitignoring vite.config.ts.timestamp-* and adding rm -rf of those files before build in package.json scripts. Some report the frequency varies by Node version, so matching the bundled Node LTS to what Vite 4 expects reduces the occurrence.