Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

1.4 KB
Raw Blame
import path from "node:path";
import { Config } from "@remotion/cli/config";

// The Remotion bundler (webpack) doesn't read tsconfig `paths`, so teach it the
// `@/* → project root` alias that `@/registry/...` imports rely on.
Config.overrideWebpackConfig((config) => ({
  ...config,
  resolve: {
    ...config.resolve,
    alias: {
      ...(config.resolve?.alias ?? {}),
      "@/components/remocn/typed-split-wipe$": path.join(
        process.cwd(),
        "registry/remocn/typed-split-wipe/index.tsx",
      ),
      "@/components/remocn/caret$": path.join(
        process.cwd(),
        "registry/remocn-ui/caret/index.tsx",
      ),
      "@/components/remocn/shader-text-reveal$": path.join(
        process.cwd(),
        "registry/remocn/shader-text-reveal/index.tsx",
      ),
      "@/components/remocn/number-wheel$": path.join(
        process.cwd(),
        "registry/remocn/number-wheel/index.tsx",
      ),
      "@/components/remocn/word-push$": path.join(
        process.cwd(),
        "registry/remocn/word-push/index.tsx",
      ),
      "@/components/remocn/radial-burst$": path.join(
        process.cwd(),
        "registry/remocn/radial-burst/index.tsx",
      ),
      "@/lib/remocn/audit-core$": path.join(
        process.cwd(),
        "registry/remocn/audit-core/index.tsx",
      ),
      "@": process.cwd(),
    },
  },
}));

Config.setEntryPoint("src/remotion/index.ts");