Skip to content

🎥 Make videos programmatically with React

mandatory

Jonny Burger6419cbfa60e1
diff --git a/packages/bundler/src/bundle.ts b/packages/bundler/src/bundle.ts
index 7aee4ac9be..e16ccdf384 100644
--- a/packages/bundler/src/bundle.ts
+++ b/packages/bundler/src/bundle.ts
@@ -120,6 +120,7 @@ export const getConfig = ({
experimentalClientSideRenderingEnabled,
experimentalVisualModeEnabled,
askAIEnabled: options?.askAIEnabled ?? true,
+ extraPlugins: [],
};
if (options.rspack) {
diff --git a/packages/bundler/src/rspack-config.ts b/packages/bundler/src/rspack-config.ts
index dc480b3520..e5ba834fc4 100644
--- a/packages/bundler/src/rspack-config.ts
+++ b/packages/bundler/src/rspack-config.ts
@@ -47,7 +47,7 @@ export const rspackConfig = async ({
experimentalClientSideRenderingEnabled: boolean;
experimentalVisualModeEnabled: boolean;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
- extraPlugins?: any[];
+ extraPlugins: any[];
}): Promise<[string, RspackConfiguration]> => {
let lastProgress = 0;
@@ -121,7 +121,7 @@ export const rspackConfig = async ({
new ReactRefreshPlugin({overlay: false}),
new rspack.HotModuleReplacementPlugin(),
define,
- ...(extraPlugins ?? []),
+ ...extraPlugins,
]
: [
new ProgressPlugin((p: number) => {
diff --git a/packages/bundler/src/webpack-config.ts b/packages/bundler/src/webpack-config.ts
index e999da8c6a..9a3d292dd8 100644
--- a/packages/bundler/src/webpack-config.ts
+++ b/packages/bundler/src/webpack-config.ts
@@ -60,7 +60,7 @@ export const webpackConfig = async ({
askAIEnabled: boolean;
experimentalClientSideRenderingEnabled: boolean;
experimentalVisualModeEnabled: boolean;
- extraPlugins?: webpack.WebpackPluginInstance[];
+ extraPlugins: webpack.WebpackPluginInstance[];
}): Promise<[string, WebpackConfiguration]> => {
const esbuildLoaderOptions: LoaderOptions = {
target: 'chrome85',
@@ -110,7 +110,7 @@ export const webpackConfig = async ({
new AllowOptionalDependenciesPlugin(),
new AllowDependencyExpressionPlugin(),
new IgnorePackFileCacheWarningsPlugin(),
- ...(extraPlugins ?? []),
+ ...extraPlugins,
]
: [
new ProgressPlugin((p) => {