Skip to content

Commit

Permalink
refactor: Update import paths and restructure vite config for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
websiddu committed Dec 21, 2024
1 parent cacb117 commit 19ece78
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/pages/AccordionSamples.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Accordion, AccordionGroup, Typography } from '../../lib';
import { Accordion, AccordionGroup } from '../../dist/accordion';
import { Typography } from '../../dist/typography';

export const AccordionSamples = () => {
return (
Expand Down
12 changes: 9 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ export default defineConfig({
minify: 'esbuild',
copyPublicDir: false,
lib: {
entry: 'lib/index.ts',
fileName: 'index',
formats: ['es', 'cjs'],
entry: {
callout: 'lib/Callout/Callout.tsx',
code: 'lib/Code/Code.tsx',
image: 'lib/Image/ImageZoom.tsx',
article: 'lib/Article/Article.tsx',
accordion: 'lib/Accordion/Accordion.tsx',
typography: 'lib/Typography/Typography.tsx',
utils: 'lib/utils.ts',
},
},
rollupOptions: {
external: ['react/jsx-runtime', ...Object.keys(peerDependencies)],
Expand Down

0 comments on commit 19ece78

Please sign in to comment.