Skip to content

🎥 Make videos programmatically with React

fix bundling progress

Jonny Burgerbed13d8c7b5a
diff --git a/packages/cli/src/progress-bar.ts b/packages/cli/src/progress-bar.ts
index b79e3fc23c..358ce0668a 100644
--- a/packages/cli/src/progress-bar.ts
+++ b/packages/cli/src/progress-bar.ts
@@ -272,7 +272,7 @@ const getGuiProgressSubtitle = (progress: AggregateRenderProgress): string => {
return `Bundling ${Math.round(progress.bundling.progress * 100)}%`;
}
- if (!progress.copyingState.doneIn) {
+ if (progress.copyingState.doneIn === null) {
if (progress.copyingState.bytes < 100_000_000) {
return 'Bundling 100%';
}
diff --git a/packages/cli/src/render-flows/render.ts b/packages/cli/src/render-flows/render.ts
index dc71d7d9f9..5d534845da 100644
--- a/packages/cli/src/render-flows/render.ts
+++ b/packages/cli/src/render-flows/render.ts
@@ -302,7 +302,7 @@ export const renderVideoFlow = async ({
});
Log.verboseAdvanced(
- {indent, logLevel, tag: 'config'},
+ {indent, logLevel},
chalk.gray(`Entry point = ${fullEntryPoint} (${entryPointReason})`)
);
Log.infoAdvanced(
diff --git a/packages/cli/src/render-flows/still.ts b/packages/cli/src/render-flows/still.ts
index 305ae6065f..cbfebcfb31 100644
--- a/packages/cli/src/render-flows/still.ts
+++ b/packages/cli/src/render-flows/still.ts
@@ -221,7 +221,7 @@ export const renderStillFlow = async ({
});
Log.verboseAdvanced(
- {indent: indentOutput, logLevel, tag: 'config'},
+ {indent: indentOutput, logLevel},
chalk.gray(`Entry point = ${fullEntryPoint} (${entryPointReason})`)
);
Log.infoAdvanced(
diff --git a/packages/cli/src/setup-cache.ts b/packages/cli/src/setup-cache.ts
index 9203effa07..4ea8f42306 100644
--- a/packages/cli/src/setup-cache.ts
+++ b/packages/cli/src/setup-cache.ts
@@ -46,6 +46,16 @@ export const bundleOnCliOrTakeServeUrl = async ({
cleanup: () => void;
}> => {
if (RenderInternals.isServeUrl(fullPath)) {
+ onProgress({
+ bundling: {
+ doneIn: 0,
+ progress: 1,
+ },
+ copying: {
+ bytes: 0,
+ doneIn: 0,
+ },
+ });
return {
urlOrBundle: fullPath,
cleanup: () => Promise.resolve(undefined),