Skip to content

🎥 Make videos programmatically with React

Update webpack-config.ts

Jonny Burger5aab700f46f8
diff --git a/packages/bundler/src/webpack-config.ts b/packages/bundler/src/webpack-config.ts
index e1977fe2c9..316de24bc6 100644
--- a/packages/bundler/src/webpack-config.ts
+++ b/packages/bundler/src/webpack-config.ts
@@ -28,7 +28,9 @@ if (reactDomVersion === '0') {
);
}
-const shouldUseReactDomClient = parseInt(reactDomVersion, 10) >= 18;
+const shouldUseReactDomClient = NoReactInternals.ENABLE_V5_BREAKING_CHANGES
+ ? true
+ : parseInt(reactDomVersion, 10) >= 18;
const esbuildLoaderOptions: LoaderOptions = {
target: 'chrome85',