v5-breaking-changes
Installation
SKILL.md
Remotion 5 Breaking Changes
Use the central compile-time flag in packages/core/src/v5-flag.ts:
export const ENABLE_V5_BREAKING_CHANGES = false as const;
Preserve the compile-time flag
- Keep the flag as the literal
false as conston the v4/main release line. - Do not turn it into an environment variable, runtime option, or general
boolean. Its literal type selects the public TypeScript API as well as runtime behavior. - Do not introduce another v5 flag.
- Inside
packages/core, import the flag fromv5-flag.ts. From another package, useNoReactInternals.ENABLE_V5_BREAKING_CHANGESfromremotion/no-reactso all packages use the same value.
When the v5 release line is cut, changing this one constant to true as const must activate the v5 runtime behavior and public TypeScript API together.