Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
fix: remotion builder
dev_wandryccb7e75e7f95
diff --git a/lib/server/bundle.ts b/lib/server/bundle.tsindex d203d039..4b4c8b01 100644--- a/lib/server/bundle.ts+++ b/lib/server/bundle.ts@@ -27,8 +27,18 @@ export function getServeUrl(): Promise<string> {try {return await bundle({entryPoint: ENTRY_POINT,- // Keep Remotion's defaults; the registry component is plain React + CSS.- webpackOverride: (config) => config,+ // Webpack doesn't read tsconfig `paths`; teach it the `@/* → root` alias+ // (must match scripts/bundle-remotion.mts) so `@/registry/...` resolves.+ webpackOverride: (config) => ({+ ...config,+ resolve: {+ ...config.resolve,+ alias: {+ ...(config.resolve?.alias ?? {}),+ "@": process.cwd(),+ },+ },+ }),});} catch (err) {// Don't poison the cache on failure — let the next render retry the bundle.diff --git a/scripts/bundle-remotion.mts b/scripts/bundle-remotion.mtsindex c9edb85c..b3ed280b 100644--- a/scripts/bundle-remotion.mts+++ b/scripts/bundle-remotion.mts@@ -22,8 +22,19 @@ async function main() {const serveUrl = await bundle({entryPoint,outDir,- // Keep Remotion's defaults; the registry component is plain React + CSS.- webpackOverride: (config) => config,+ // The Remotion bundler (webpack) doesn't read tsconfig `paths`, so teach it+ // the `@/* → project root` alias that src/remotion/Root.tsx + the registry+ // component's config rely on. Without this `@/registry/...` fails to resolve.+ webpackOverride: (config) => ({+ ...config,+ resolve: {+ ...config.resolve,+ alias: {+ ...(config.resolve?.alias ?? {}),+ "@": root,+ },+ },+ }),});console.log(`Remotion bundle ready at: ${serveUrl}`);}