text: import vue from '@vitejs/plugin-vue'
  const path = require('path')
  
  /**
   * https://vitejs.dev/config/
   * @type {import('vite').UserConfig}
   */
  export default {
    plugins: [vue()],
    build: {
      lib: {
        entry: path.resolve(__dirname, 'lib/index.js'),
        name: 'CameraGestures',
        formats: ['es', 'iife', 'umd']
      },
      rollupOptions: {
        external: ['vue'],
        output: {
          globals: {
            vue: 'Vue',
          },
          exports: 'named'
        },
      },
    },
  }
  