UNPKG

react-carousel-query

Version:

A infinite carousel component made with react that handles the pagination for you.

21 lines (19 loc) 431 B
import { resolve } from 'node:path'; import { defineConfig } from 'vite'; export default defineConfig({ build: { target: 'es2015', lib: { entry: resolve(__dirname, 'index.js'), name: 'psl', formats: ['es', 'cjs', 'umd'], fileName: format => ( format === 'umd' ? 'psl.umd.cjs' : format === 'cjs' ? 'psl.cjs' : 'psl.mjs' ), }, }, });