Skip to content

🎥 Make videos programmatically with React

Put remotion version on cache key - delete cache on every version upgrade

Jonny Burger2f67bec7b99c
diff --git a/packages/bundler/src/webpack-cache.ts b/packages/bundler/src/webpack-cache.ts
index 10e997203a..e8f8fc8a83 100644
--- a/packages/bundler/src/webpack-cache.ts
+++ b/packages/bundler/src/webpack-cache.ts
@@ -1,5 +1,6 @@
import fs from 'node:fs';
import path from 'node:path';
+import {VERSION} from 'remotion/version';
type Environment = 'development' | 'production';
@@ -51,7 +52,7 @@ const getWebpackCacheDir = (remotionRoot: string) => {
};
const getPrefix = (environment: Environment) => {
- return `remotion-v5-${environment}`;
+ return `remotion-${environment}-${VERSION}`;
};
export const getWebpackCacheEnvDir = (environment: Environment) => {