floating-vue
Version:
Easy Vue tooltips, dropdowns, menus & popovers using floating-ui
32 lines (30 loc) • 649 B
text/typescript
import { resolve } from 'path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [
vue(),
],
build: {
lib: {
entry: resolve(__dirname, './src/index.ts'),
name: 'FloatingVue',
},
rollupOptions: {
external: [
'vue',
'@floating-ui/dom',
],
output: {
globals: {
vue: 'Vue',
'@floating-ui/dom': 'FloatingUIDOM',
},
},
},
},
define: {
// eslint-disable-next-line @typescript-eslint/no-var-requires
VERSION: JSON.stringify(require('./package.json').version),
},
})