@mundoit-lib/plugin-vue-event
Version:
Vue 3 plugin to handle global events between components, inspired by vue-events. This plugin provides a simple and efficient event bus system, allowing to emit, listen and unregister events in an intuitive way. Compatible with Vue 2 and Vue 3.
15 lines (13 loc) • 357 B
JavaScript
import path from 'node:path';
import { defineConfig } from 'vite';
const packagename = '@mundoit-lib/plugin-vue-event';
export default defineConfig({
build: {
lib: {
entry: path.resolve(__dirname, 'src/index.js'),
formats: ['es', 'umd'],
name: packagename,
fileName: (format) => `${packagename}.${format}.js`,
},
},
});