Files
CommonWebComponents/vite.config.ts
Marc Lorenz 6407ea531e
All checks were successful
CI / test-and-build (push) Successful in 9m32s
Component import from other project
2026-03-24 09:50:34 +01:00

30 lines
562 B
TypeScript

import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import tailwindcss from '@tailwindcss/vite'
import { resolve } from 'path'
export default defineConfig({
plugins: [
tailwindcss(),
vue(),
],
test: {
environment: 'jsdom',
},
build: {
lib: {
entry: resolve(__dirname, 'src/index.ts'),
name: 'LimelightCommonWebComponents',
fileName: 'index',
},
rollupOptions: {
external: ['vue'],
output: {
globals: {
vue: 'Vue',
},
},
},
},
})