-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
30 lines (28 loc) · 1.02 KB
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { defineConfig } from 'vite'
import p from './package.json'
const deps = [...Object.keys(p.peerDependencies) ];
export default defineConfig({
build: {
emptyOutDir: true,
outDir: "dist",
sourcemap: false,
lib: {
formats: ["cjs", "es"],
entry: {
'custom-controlbar-button': "./src/custom-controlbar-button/index.ts",
'hand-raise': "./src/hand-raise/index.ts",
'video-background': "./src/video-background/index.ts",
'participants-tab-action': "./src/participants-tab-action/index.ts",
'participants-tab-toggle': "./src/participants-tab-toggle/index.ts",
'chat-host-control': "./src/chat-host-control/index.ts",
'mic-host-control': "./src/mic-host-control/index.ts",
'camera-host-control': "./src/camera-host-control/index.ts",
'participant-menu-item': "./src/participant-menu-item/index.ts",
'participant-tile-menu': "./src/participant-tile-menu/index.ts"
},
},
rollupOptions: {
external: deps
}
},
})