From 230d1430a111879d675c295f020cc63e02994147 Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:12:38 +0900 Subject: [PATCH] feat: disable optimizer in vite-node for vite 6 compat --- packages/histoire/src/node/build.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/histoire/src/node/build.ts b/packages/histoire/src/node/build.ts index 597eee2f..06fd38be 100644 --- a/packages/histoire/src/node/build.ts +++ b/packages/histoire/src/node/build.ts @@ -50,7 +50,11 @@ export async function build(ctx: Context) { } const { viteConfig } = await getViteConfigWithPlugins(true, ctx) - const server = await createViteServer(viteConfig) + const server = await createViteServer( + mergeViteConfig(viteConfig, { + optimizeDeps: { include: [], noDiscovery: true }, + }), + ) await server.pluginContainer.buildStart({}) const moduleLoader = useModuleLoader({