Skip to content

🎥 Make videos programmatically with React

fix zod warnings in v4

Jonny Burger31be8dc41c2d
diff --git a/packages/bundler/src/webpack-config.ts b/packages/bundler/src/webpack-config.ts
index 65a147c5e8..5b4117b029 100644
--- a/packages/bundler/src/webpack-config.ts
+++ b/packages/bundler/src/webpack-config.ts
@@ -73,6 +73,10 @@ export const webpackConfig = ({
optimization: {
minimize: false,
},
+ // zod and `@remotion/zod-types` are optional
+ ignoreWarnings: [
+ (e) => e.message.includes("Can't resolve") && e.message.includes('zod'),
+ ],
experiments: {
lazyCompilation:
environment === 'production'