Skip to content

Commit

Permalink
fix: disable optimizer in vite-node for vite 6 compat (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Oct 7, 2024
1 parent 76bd44e commit f583371
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/histoire/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit f583371

Please sign in to comment.