mirror of
https://github.com/Afilmory/afilmory
synced 2026-04-24 23:05:05 +00:00
25 lines
476 B
TypeScript
25 lines
476 B
TypeScript
import dts from 'unplugin-dts/vite'
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
minify: true,
|
|
lib: {
|
|
entry: './src/index.ts',
|
|
name: 'WebGLImageViewer',
|
|
fileName: () => `index.js`,
|
|
formats: ['es'],
|
|
},
|
|
rollupOptions: {
|
|
external: ['react'],
|
|
},
|
|
},
|
|
plugins: [
|
|
dts({
|
|
include: ['src/**/*.ts', 'src/**/*.tsx'],
|
|
outDir: 'dist',
|
|
tsconfigPath: 'tsconfig.json',
|
|
}),
|
|
],
|
|
})
|