Skip to content

Commit 825b14b

Browse files
committed
build(rollup): more options
1 parent 02f1932 commit 825b14b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.storybook/main.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,19 @@ module.exports = {
3030
// https://github.com/storybookjs/builder-vite/issues/409
3131
// https://github.com/vitejs/vite/issues/2433
3232
sourcemap: false,
33-
minify: false,
33+
// minify: false,
3434
rollupOptions: {
3535
...config.build.rollupOptions,
36+
maxParallelFileOps: 2,
3637
cache: false,
38+
output: {
39+
sourcemap: false,
40+
manualChunks: (id) => {
41+
if (id.includes('node_modules')) {
42+
return 'vendor';
43+
}
44+
},
45+
},
3746
},
3847
},
3948
resolve: {

0 commit comments

Comments
 (0)