2022-08-16 15:44:33 +08:00
|
|
|
import {defineConfig} from 'vite'
|
2022-08-09 11:11:54 +08:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
build: {
|
|
|
|
lib: {
|
2022-09-01 15:04:38 +08:00
|
|
|
entry: 'src/index.ts',
|
2022-08-16 15:44:33 +08:00
|
|
|
formats: ['es'],
|
2022-08-09 11:11:54 +08:00
|
|
|
},
|
2022-09-01 15:04:38 +08:00
|
|
|
outDir: 'dist/'
|
|
|
|
// rollupOptions: {
|
|
|
|
// external: /^lit/,
|
|
|
|
// },
|
2022-08-16 15:44:33 +08:00
|
|
|
},
|
2022-08-09 11:11:54 +08:00
|
|
|
})
|