Skip to content

🎥 Make videos programmatically with React

Update builder.ts

Jonny Burger1fff094635ce
diff --git a/packages/.monorepo/builder.ts b/packages/.monorepo/builder.ts
index 76d37cc7e9..46eaa37a6b 100644
--- a/packages/.monorepo/builder.ts
+++ b/packages/.monorepo/builder.ts
@@ -34,11 +34,13 @@ const validateExternal = (external: string[]) => {
const packageJson = Object.keys(
getDependenciesAndPeerAndOptionalDependencies(),
);
-
- if (external.some((dep) => !packageJson.includes(dep))) {
- throw new Error(
- `External dependency ${external} not found in package.json`,
- );
+ for (const dep of external) {
+ if (dep === 'stream' || dep === 'fs' || dep === 'path') {
+ continue;
+ }
+ if (!packageJson.includes(dep)) {
+ throw new Error(`External dependency ${dep} not found in package.json`);
+ }
}
};