Skip to content

🎥 Make videos programmatically with React

fix

Jonny Burger3d8026889c7b
diff --git a/packages/example/remotion.config.ts b/packages/example/remotion.config.ts
index 00a462372e..56b0ff0906 100644
--- a/packages/example/remotion.config.ts
+++ b/packages/example/remotion.config.ts
@@ -1,5 +1,4 @@
import {Config} from '@remotion/cli/config';
-import {enableScss} from '@remotion/enable-scss';
import {webpackOverride} from './src/webpack-override.mjs';
Config.setOverwriteOutput(true);
@@ -7,5 +6,5 @@ Config.overrideWebpackConfig(async (config) => {
await new Promise((resolve) => {
setTimeout(resolve, 10);
});
- return enableScss(await webpackOverride(config));
+ return webpackOverride(config);
});
diff --git a/packages/example/src/webpack-override.mjs b/packages/example/src/webpack-override.mjs
index 00395a7ae3..a72162392d 100644
--- a/packages/example/src/webpack-override.mjs
+++ b/packages/example/src/webpack-override.mjs
@@ -1,5 +1,7 @@
+import {enableScss} from '@remotion/enable-scss';
import {enableSkia} from '@remotion/skia/enable';
import {enableTailwind} from '@remotion/tailwind';
+
import path from 'node:path';
const WEBPACK_OR_ESBUILD = 'esbuild';
@@ -59,37 +61,39 @@ export const webpackOverride = (currentConfiguration) => {
return currentConfiguration;
})();
- return enableSkia(
- enableTailwind({
- ...replaced,
- module: {
- ...replaced.module,
- rules: [
- ...(replaced.module?.rules ?? []),
- {
- test: /\.mdx?$/,
- use: [
- {
- loader: '@mdx-js/loader',
- options: {},
- },
- ],
- },
- ],
- },
- resolve: {
- ...replaced.resolve,
- alias: {
- ...replaced.resolve.alias,
- // eslint-disable-next-line no-undef
- lib: path.join(process.cwd(), 'src', 'lib'),
+ return enableScss(
+ enableSkia(
+ enableTailwind({
+ ...replaced,
+ module: {
+ ...replaced.module,
+ rules: [
+ ...(replaced.module?.rules ?? []),
+ {
+ test: /\.mdx?$/,
+ use: [
+ {
+ loader: '@mdx-js/loader',
+ options: {},
+ },
+ ],
+ },
+ ],
+ },
+ resolve: {
+ ...replaced.resolve,
+ alias: {
+ ...replaced.resolve.alias,
+ // eslint-disable-next-line no-undef
+ lib: path.join(process.cwd(), 'src', 'lib'),
- // ES Modules need to be generated with `pnpm build` in every package
- // So if you just make a change while you run `pnpm watch`, you don't see the difference
- // which is confusing for contributors
- ...aliases,
+ // ES Modules need to be generated with `pnpm build` in every package
+ // So if you just make a change while you run `pnpm watch`, you don't see the difference
+ // which is confusing for contributors
+ ...aliases,
+ },
},
- },
- }),
+ }),
+ ),
);
};