diff --git a/packages/docusaurus/src/webpack/client.ts b/packages/docusaurus/src/webpack/client.ts index 0b9987f46024..6a2e80899068 100644 --- a/packages/docusaurus/src/webpack/client.ts +++ b/packages/docusaurus/src/webpack/client.ts @@ -51,7 +51,7 @@ async function createBaseClientConfig({ name: 'Client', }), await createStaticDirectoriesCopyPlugin({props}), - ], + ].filter(Boolean), }); }