Skip to content

🎥 Make videos programmatically with React

bundleLocation

Jonny Burgerdb46cbe8c5db
diff --git a/packages/docs/docs/render-still.md b/packages/docs/docs/render-still.md
index 92736dd7c5..fd304cb179 100644
--- a/packages/docs/docs/render-still.md
+++ b/packages/docs/docs/render-still.md
@@ -11,7 +11,7 @@ If you want to render a full image sequence and possibly encode it to a video la
## Example usage
-You first need to bundle the project and fetch the compositions. Read [the code snippet on the site for server-side rendering](/docs/ssr/#render-a-video-programmatically) for an example how to come up with the `bundled` and `composition` variables.
+You first need to bundle the project and fetch the compositions. Read [the code snippet on the site for server-side rendering](/docs/ssr/#render-a-video-programmatically) for an example how to come up with the `bundleLocation` and `composition` variables.
```ts twoslash
// @module: ESNext
@@ -25,9 +25,9 @@ import {
// The composition you want to render
const compositionId = 'HelloWorld'
-const bundled = await bundle(require.resolve('./src/index'))
+const bundleLocation = await bundle(require.resolve('./src/index'))
-const comps = await getCompositions(bundled, {
+const comps = await getCompositions(bundleLocation, {
inputProps: {
custom: 'data',
},
@@ -42,7 +42,7 @@ if (!composition) {
await renderStill({
composition,
- webpackBundle: bundled,
+ webpackBundle: bundleLocation,
output: '/tmp/still.png',
inputProps: {
custom: 'data'
diff --git a/packages/docs/docs/ssr.md b/packages/docs/docs/ssr.md
index 3b2470fd34..8759cb384b 100644
--- a/packages/docs/docs/ssr.md
+++ b/packages/docs/docs/ssr.md
@@ -31,11 +31,11 @@ const start = async () => {
const compositionId = 'HelloWorld'
// Create a webpack bundle of the entry file.
- const bundled = await bundle(require.resolve('./src/index'))
+ const bundleLocation = await bundle(require.resolve('./src/index'))
// Extract all the compositions you have defined in your project
// from the webpack bundle.
- const comps = await getCompositions(bundled, {
+ const comps = await getCompositions(bundleLocation, {
// You can pass custom input props that you can retrieve using getInputProps()
// in the composition list. Use this if you want to dynamically set the duration or
// dimensions of the video.
@@ -61,7 +61,7 @@ const start = async () => {
const {assetsInfo} = await renderFrames({
config: composition,
// Path of the webpack bundle you have created
- webpackBundle: bundled,
+ webpackBundle: bundleLocation,
// Get's called after bundling is finished and the
// actual rendering starts.
onStart: () => console.log('Rendering frames...'),