import { resolve } from 'path' import { defineConfig } from 'vite' export default defineConfig({ build: { lib: { // Could also be a dictionary or array of multiple entry points entry: resolve(__dirname, 'index.ts'), name: 'tabler-react', // the proper extensions will be added fileName: 'tabler-react', }, rollupOptions: { // make sure to externalize deps that shouldn't be bundled // into your library external: ['react'], output: { // Provide global variables to use in the UMD build // for externalized deps globals: { react: 'React', }, }, }, }, })