Skip to content

Commit e08d530

Browse files
committed
fix(vite): add escape hatch when creating nodes for timestamp files #28371
1 parent 1badac8 commit e08d530

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/vite/src/plugins/plugin.ts

+4
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ async function createNodesInternal(
8989
context: CreateNodesContext,
9090
targetsCache: Record<string, ViteTargets>
9191
) {
92+
// Escape hatch for timestamp files that have not been cleaned up by vite's resolveConfig function
93+
if (configFilePath.includes('.timestamp-')) {
94+
return {};
95+
}
9296
const projectRoot = dirname(configFilePath);
9397
// Do not create a project if package.json and project.json isn't there.
9498
const siblingFiles = readdirSync(join(context.workspaceRoot, projectRoot));

0 commit comments

Comments
 (0)