🎥 Make videos programmatically with React
Merge pull request #1323 from remotion-dev/public-dir-root-dir-options
Jonny Burger603c179bd78c
diff --cc packages/docs/docs/bundle.mdindex 87a524728d,0516cc716e..e4cf11bdf5--- a/packages/docs/docs/bundle.md+++ b/packages/docs/docs/bundle.md@@@ -89,37 -91,8 +89,37 @@@ The current working directory is the di_Available from v3.2.13_- TODO!!!+ Set the directory in which the files that can be loaded using [`staticFile()`](/docs/staticfile) are located. By default it is the folder `public/` located in the Remotion root folder.+## Legacy function signature++Remotion versions earlier than v3.2.17 had the following function signature instead:++```ts+const bundle: (+ entryPoint: string,+ onProgress?: (progress: number) => void,+ options?: {+ webpackOverride?: WebpackOverrideFn;+ outDir?: string;+ enableCaching?: boolean;+ publicPath?: string;+ rootDir?: string;+ publicDir?: string | null;+ }+) => Promise<string>;+```++Example:++```ts+await bundle("src/index.tsx", () => console.log(progress * 100 + "% done"), {+ webpackOverride,+});+```++It is still supported in Remotion v3, but we encourage to migrate to the new function signature.+## Return valueA promise which will resolve into a `string` specifying the output directory.