Skip to content

Commit

Permalink
fix(build): default vite chunks not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Mar 16, 2022
1 parent deee7de commit b05a35a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/histoire/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ export async function build (ctx: Context) {
join(APP_PATH, 'index.ts'),
join(APP_PATH, 'sandbox.ts'),
],
output: {
manualChunks (id) {
if (!id.includes('histoire/dist/client') && id.includes('node_modules')) {
return 'vendor'
}
},
},
},
outDir: ctx.config.outDir,
emptyOutDir: true,
Expand Down

0 comments on commit b05a35a

Please sign in to comment.