24 lines
453 B
TypeScript
24 lines
453 B
TypeScript
import { defineConfig } from 'vite'
|
|
import dts from 'vite-plugin-dts'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [dts()],
|
|
build: {
|
|
lib: {
|
|
entry: ['index.ts']
|
|
},
|
|
rollupOptions: {
|
|
external: [/@opentiny/, /@floating-ui/],
|
|
input: ['index.ts'],
|
|
output: [
|
|
{
|
|
format: 'es',
|
|
entryFileNames: '[name].js',
|
|
preserveModules: true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
})
|