Skip to content

Commit dbd5fe3

Browse files
committed
build(development): build object is undefined in dev environment
1 parent c634c0c commit dbd5fe3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.storybook/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ module.exports = {
2626
return {
2727
...config,
2828
build: {
29-
...config.build,
29+
...(config?.build ?? {}),
3030
// https://github.com/storybookjs/builder-vite/issues/409
3131
// https://github.com/vitejs/vite/issues/2433
3232
sourcemap: false,
3333
// minify: false,
3434
rollupOptions: {
35-
...config.build.rollupOptions,
35+
...(config?.build?.rollupOptions ?? {}),
3636
maxParallelFileOps: 2,
3737
cache: false,
3838
output: {
@@ -46,7 +46,7 @@ module.exports = {
4646
},
4747
},
4848
resolve: {
49-
...config.resolve,
49+
...(config?.resolve ?? {}),
5050
alias: [
5151
{
5252
find: '@table-library/react-table-library/types',

0 commit comments

Comments
 (0)