shadcn-vue/apps/www/vite.config.ts
zernonia 9d9980a049
feat: select (#12)
* feat: add Select, jsx

* feat: add utility to convert functional component to basic component vnode

* refactor: rename function

* fix: radix-vue link path
2023-08-23 21:28:04 +08:00

30 lines
612 B
TypeScript

import path from 'node:path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
// https://vitejs.dev/config/
export default defineConfig({
build: {
lib: {
entry: path.resolve(__dirname, 'src/index.js'),
name: 'radix-vue',
fileName: format => `${format}.js`,
},
rollupOptions: {
external: ['vue'],
output: {
globals: {
vue: 'Vue',
},
},
},
},
plugins: [vue(), vueJsx()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src/lib'),
},
},
})