UNPKG

virtualdropdown-select

Version:

A component that allows us to use select and search for long select options.

24 lines (22 loc) 678 B
import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], build: { lib: { entry: 'src/VirtualDropdown.jsx', // Entry point for your component name: 'VirtualDropdownSelect', // Global variable name in UMD build fileName: (format) => `virtualdropdown-select.${format}.js`, // Output file name }, rollupOptions: { // Ensure that external libraries like React are not bundled into the package external: ['react', 'react-dom'], output: { globals: { react: 'React', 'react-dom': 'ReactDOM', }, }, }, }, });