Skip to content

Commit

Permalink
feat: test multi entry
Browse files Browse the repository at this point in the history
  • Loading branch information
lebmouse committed Jul 23, 2024
1 parent a7eb746 commit b0578c0
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/component/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const component = 'component';
1 change: 1 addition & 0 deletions src/composite/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const composite = 'composite';
1 change: 1 addition & 0 deletions src/core/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const core = 'core';
1 change: 1 addition & 0 deletions src/icon/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const foo = 'foo';
1 change: 1 addition & 0 deletions src/legacy/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const legacy = 'legacy';
1 change: 1 addition & 0 deletions src/token/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const token = 'token';
10 changes: 9 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ import { viteStaticCopy } from 'vite-plugin-static-copy';
export default defineConfig({
build: {
lib: {
entry: resolve(__dirname, './src/index.ts'),
entry: {
index: resolve(__dirname, './src/index.ts'),
core: resolve(__dirname, './src/core/index.ts'),
icon: resolve(__dirname, './src/icon/index.ts'),
component: resolve(__dirname, './src/component/index.ts'),
composite: resolve(__dirname, './src/composite/index.ts'),
legacy: resolve(__dirname, './src/legacy/index.ts'),
token: resolve(__dirname, './src/token/index.ts'),
},
name: 'cds',
fileName: 'index',
},
Expand Down

0 comments on commit b0578c0

Please sign in to comment.