Skip to content

🎥 Make videos programmatically with React

Update remotion.config.ts

Jonny Burgerd2dca9bb884e
diff --git a/packages/example/remotion.config.ts b/packages/example/remotion.config.ts
index 128803ded2..f5c26afd0b 100644
--- a/packages/example/remotion.config.ts
+++ b/packages/example/remotion.config.ts
@@ -11,15 +11,15 @@ const WEBPACK_OR_ESBUILD = 'esbuild' as Bundler;
export const webpackOverride: WebpackOverrideFn = (currentConfiguration) => {
const replaced = (() => {
- const {replaceLoadersWithBabel} = require(path.join(
- __dirname,
- '..',
- '..',
- 'example',
- 'node_modules',
- '@remotion/babel-loader'
- ));
if (WEBPACK_OR_ESBUILD === 'webpack') {
+ const {replaceLoadersWithBabel} = require(path.join(
+ __dirname,
+ '..',
+ '..',
+ 'example',
+ 'node_modules',
+ '@remotion/babel-loader'
+ ));
return replaceLoadersWithBabel(currentConfiguration);
}
return currentConfiguration;