react-country-dropdown-cu
Version:
A simple country selector dropdown for React with flags and search
20 lines (18 loc) • 448 B
JavaScript
// vite.config.js
import react from '@vitejs/plugin-react';
import path from 'path';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [react()],
build: {
lib: {
entry: path.resolve(__dirname, 'src/index.js'), // ✅ Correct path
name: 'ReactCountryDropdownCU',
fileName: 'index',
formats: ['es', 'cjs'],
},
rollupOptions: {
external: ['react', 'react-dom'],
},
},
});