UNPKG

dynamic-table-react

Version:
23 lines (21 loc) 477 B
import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], build: { lib: { entry: './src/index.js', name: 'DynamicTableReact', fileName: (format) => `dynamic-table-react.${format}.js`, }, rollupOptions: { external: ['react', 'react-dom'], output: { globals: { react: 'React', 'react-dom': 'ReactDOM' } } } } });