diff --git a/src/node/build/bundle.ts b/src/node/build/bundle.ts index bdb69a13..e82e09e5 100644 --- a/src/node/build/bundle.ts +++ b/src/node/build/bundle.ts @@ -53,12 +53,12 @@ export async function bundle( clientJSMap ), ssr: { - noExternal: ['vitepress'] - }, - // TODO: remove this workaround - legacy: { - buildSsrCjsExternalHeuristics: true + noExternal: ['vitepress', '@docsearch/css'] }, + // // TODO: remove this workaround + // legacy: { + // buildSsrCjsExternalHeuristics: true + // }, build: { ...options, emptyOutDir: true,