Skip to content

🎥 Make videos programmatically with React

Warn when falling back to Webpack

Igor Samokhovetsabb3e38bd6bf
diff --git a/packages/cli/src/load-config.ts b/packages/cli/src/load-config.ts
index ca4092bc3b..c65e01fe6d 100644
--- a/packages/cli/src/load-config.ts
+++ b/packages/cli/src/load-config.ts
@@ -3,6 +3,8 @@ import path from 'node:path';
import {isMainThread} from 'node:worker_threads';
import {BundlerInternals} from '@remotion/bundler';
import {BrowserSafeApis} from '@remotion/renderer/client';
+import {Log} from './log';
+import {parsedCli} from './parsed-cli';
export type PreparedConfigFile = {
code: string;
@@ -78,6 +80,15 @@ export const executeConfigFile = ({code, remotionRoot}: PreparedConfigFile) => {
BrowserSafeApis.options.rspackOption.getConfigValue() === true
) {
BrowserSafeApis.options.rspackOption.setConfig(false);
+ Log.warn(
+ {
+ indent: false,
+ logLevel: BrowserSafeApis.options.logLevelOption.getValue({
+ commandLine: parsedCli,
+ }).value,
+ },
+ 'Rspack is currently disabled in WebContainers. Falling back to Webpack.',
+ );
}
} finally {
if (isMainThread) {