Skip to content

Commit

Permalink
Build: added vite plugin commonjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Jun 18, 2024
1 parent 71af6ee commit 2d734af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { mergeConfig } from 'vite';
import { default as commonjs } from 'vite-plugin-commonjs'
import { default as path } from 'path';
import type { StorybookConfig } from '@storybook/react-vite';

Expand Down Expand Up @@ -28,6 +29,9 @@ const config: StorybookConfig = {
"@/": `${path.resolve(__dirname, "../src")}/`
}
},
plugins: [
commonjs()
]
});
},
};
Expand Down
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@
"tailwindcss": "3.4.1",
"tailwindcss-animate": "1.0.6",
"tsc-alias": "1.8.8",
"vite": "4.5.2"
"vite": "4.5.2",
"vite-plugin-commonjs": "0.10.1"
},
"overrides": {
"jsondiffpatch": "^0.5.0",
Expand Down

0 comments on commit 2d734af

Please sign in to comment.