mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-07 07:12:23 +03:00
fda0d8603c
BREAKING: only export the Select component
28 lines
681 B
TypeScript
28 lines
681 B
TypeScript
import { resolve } from 'path'
|
|
import { fileURLToPath, URL } from 'url'
|
|
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
publicDir: false,
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, 'src/index.js'),
|
|
name: 'vue-select',
|
|
fileName: (format) => `vue-select.${format}.js`,
|
|
},
|
|
rollupOptions: {
|
|
external: ['vue'],
|
|
output: { globals: { vue: 'Vue' } },
|
|
},
|
|
},
|
|
})
|