Skip to content

🎥 Make videos programmatically with React

fix webpack caching

Jonny Burger88fa8c49a855
diff --git a/packages/bundler/src/bundle.ts b/packages/bundler/src/bundle.ts
index 731c62abe5..85313e3c76 100644
--- a/packages/bundler/src/bundle.ts
+++ b/packages/bundler/src/bundle.ts
@@ -1,10 +1,5 @@
import type {GitSource} from '@remotion/studio-shared';
-import {
- DEFAULT_BUFFER_STATE_DELAY_IN_MILLISECONDS,
- DEFAULT_TIMELINE_TRACKS,
- getProjectName,
- SOURCE_MAP_ENDPOINT,
-} from '@remotion/studio-shared';
+import {getProjectName, SOURCE_MAP_ENDPOINT} from '@remotion/studio-shared';
import fs, {promises} from 'node:fs';
import os from 'node:os';
import path from 'node:path';
@@ -203,10 +198,10 @@ export async function bundle(...args: Arguments): Promise<string> {
resolvedRemotionRoot,
onProgress,
options,
+ // Should be null to keep cache hash working
bufferStateDelayInMilliseconds:
- actualArgs.bufferStateDelayInMilliseconds ??
- DEFAULT_BUFFER_STATE_DELAY_IN_MILLISECONDS,
- maxTimelineTracks: actualArgs.maxTimelineTracks ?? DEFAULT_TIMELINE_TRACKS,
+ actualArgs.bufferStateDelayInMilliseconds ?? null,
+ maxTimelineTracks: actualArgs.maxTimelineTracks ?? null,
});
const output = await promisified([config]);