ura-components/widgets.config.ts

14 lines
361 B
TypeScript

import {defineConfig} from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
build: {
lib: {
entry: `src/widgets/${process.env.WIDGET_FILE_NAME}/${process.env.WIDGET_FILE_NAME}.ts`,
formats: ['es'],
fileName: `${process.env.WIDGET_FILE_NAME}`
},
outDir: `dist/widgets/${process.env.WIDGET_FILE_NAME}/`,
},
})