ura-components/vite.config.ts

16 lines
266 B
TypeScript
Raw Permalink Normal View History

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-19 09:45:47 +08:00
outDir: 'dist/',
2022-09-01 15:04:38 +08:00
// rollupOptions: {
// external: /^lit/,
// },
2022-08-16 15:44:33 +08:00
},
2022-08-09 11:11:54 +08:00
})