Skip to content

@remotion/cli: Add Config.setRspack() - #9889

Merged
JonnyBurger merged 3 commits into
mainfrom
codex/set-rspack
Jul 29, 2026
Merged

@remotion/cli: Add Config.setRspack()#9889
JonnyBurger merged 3 commits into
mainfrom
codex/set-rspack

Conversation

@JonnyBurger

@JonnyBurger JonnyBurger commented Jul 29, 2026

Copy link
Copy Markdown
Member

Summary

  • add Config.setRspack() as the canonical config-file API
  • keep Config.setExperimentalRspackEnabled() as a deprecated compatibility alias
  • rename the CLI flag to --rspack
  • reject --experimental-rspack with a migration error
  • replace the experimental Studio warning with a verbose log of the selected bundler
  • update the Rspack documentation and test coverage

Closes #9786.

Testing

  • focused CLI and renderer option tests
  • manual CLI checks for --rspack and --experimental-rspack
  • bun run build
  • bun run stylecheck
  • bun run prewarm-twoslash in packages/docs
  • bun test src in packages/docs
  • bun run build-docs in packages/docs
  • bun run render-cards in packages/docs

Red/green verified for the new config setter and the removed CLI flag error.

Preview

@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bugs Ready Ready Preview, Comment Jul 29, 2026 1:33pm
remotion Ready Ready Preview, Comment Jul 29, 2026 1:33pm

Request Review

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes — adds Config.setRspack() as the canonical config-file API, keeps Config.setExperimentalRspackEnabled() as a deprecated compatibility alias, and migrates docs and the example to the new name.

  • Add Config.setRspack() to the config type and Config object — both setRspack and setExperimentalRspackEnabled route to rspackOption.setConfig.
  • Mark setExperimentalRspackEnabled() as @deprecated in the JSDoc with a link to the new API.
  • Update docsconfig.mdx now documents setRspack() as the primary API and shows the old name with strikethrough and a deprecation callout; overwriting-webpack-config.mdx uses the new API in its snippet.
  • Update remotion.config.ts in the example to use Config.setRspack(true).
  • Add test verifying both APIs configure the same option value.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) (Claude Opus not used — the program covers this model; add its provider key to run your pick) | 𝕏

@JonnyBurger
JonnyBurger merged commit 6541ac1 into main Jul 29, 2026
18 checks passed
@JonnyBurger
JonnyBurger deleted the codex/set-rspack branch July 29, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename .setExperimentalRspack to .setRspack()

1 participant