UNPKG

@playwire/pw-vue-component

Version:

## Customize configuration

31 lines (28 loc) 621 B
import { fileURLToPath, URL } from 'node:url' import path from 'path' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ build: { lib: { entry: path.resolve(__dirname, 'src/lib/components/index.js'), name: 'ramp', fileName: (format) => `ramp.${format}.js` }, rollupOptions: { external: ['vue'], output: { globals: { vue: 'Vue' } } } }, plugins: [vue()], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } } })