Skip to content

Commit

Permalink
fix(bundling): fix vite plugin caching
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Jun 10, 2024
1 parent 9280c9a commit d273068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ export const createNodes: CreateNodes<VitePluginOptions> = [
// We do not want to alter how the hash is calculated, so appending the config file path to the hash
// to prevent vite/vitest files overwriting the target cache created by the other
const hash =
calculateHashForCreateNodes(projectRoot, options, context, [
(await calculateHashForCreateNodes(projectRoot, options, context, [
getLockFileName(detectPackageManager(context.workspaceRoot)),
]) + configFilePath;
])) + configFilePath;

targetsCache[hash] ??= await buildViteTargets(
configFilePath,
Expand Down

0 comments on commit d273068

Please sign in to comment.