Skip to content

🎥 Make videos programmatically with React

Fixes @remotion/zod types still being mandatory

Jonny Burger8be537733b7b
diff --git a/packages/bugs/api/[v].ts b/packages/bugs/api/[v].ts
index 0042ffbf14..e14c1ffa3b 100644
--- a/packages/bugs/api/[v].ts
+++ b/packages/bugs/api/[v].ts
@@ -12,7 +12,7 @@ const bugs: Bug[] = [
description:
"Remotion would require zod and @remotion/zod-types even though it should be optional.",
link: "https://remotion.dev/changelog",
- versions: ["4.0.92", "4.0.93"],
+ versions: ["4.0.92", "4.0.93", "4.0.94"],
},
{
title: "Broken release",
diff --git a/packages/bundler/src/optional-dependencies.ts b/packages/bundler/src/optional-dependencies.ts
index 7966d00519..d29eb164ee 100644
--- a/packages/bundler/src/optional-dependencies.ts
+++ b/packages/bundler/src/optional-dependencies.ts
@@ -14,10 +14,13 @@ const SOURCE_MAP_IGNORE = ['path', 'fs'];
export class AllowOptionalDependenciesPlugin {
checkIgnore = (resolveData: webpack.ResolveData) => {
+ if (OPTIONAL_DEPENDENCIES.includes(resolveData.request)) {
+ return false;
+ }
+
if (
resolveData.context.includes('source-map') &&
- (SOURCE_MAP_IGNORE.includes(resolveData.request) ||
- OPTIONAL_DEPENDENCIES.includes(resolveData.request))
+ SOURCE_MAP_IGNORE.includes(resolveData.request)
) {
return false;
}