Capítulo 84 de 988

Chapter 84: bundle()

Core Idea

_Part of the @remotion/bundler package.

Key Concepts

  • Example
  • Arguments
  • entryPoint
  • onProgress?
  • webpackOverride?
  • bundlerOverride?<AvailableFrom v="4.0.498" />
  • rspackOverride?<AvailableFrom v="4.0.498" />
  • outDir?

Code Examples

const serveUrl = await bundle({
  entryPoint: path.join(process.cwd(), './src/index.ts'),
  // If you have a bundler override in remotion.config.ts, pass it here as well.
  webpackOverride: (config) => config,
});
  • What it demonstrates: Usage pattern for bundle() from the official docs.

Key Takeaways

  1. Understand example when working with bundle().
  2. Understand arguments when working with bundle().
  3. Understand entrypoint when working with bundle().
  4. Understand onprogress? when working with bundle().
  5. Understand webpackoverride? when working with bundle().

Connects To

  • Authoring Packages: related page in the CLI & Bundling section.
  • Bundler: related page in the CLI & Bundling section.
  • Bundlers: related page in the CLI & Bundling section.