Skip to content

Commit

Permalink
feat: disable optimizer in vite-node for vite 6 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Aug 29, 2024
1 parent 76bd44e commit 230d143
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 230d143

Please sign in to comment.